diff --git a/.envrc b/.envrc deleted file mode 100644 index 3550a30..0000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake diff --git a/hosts/hetzner-arm/profiles/vaultwarden.nix b/hosts/hetzner-arm/profiles/vaultwarden.nix new file mode 100644 index 0000000..ac6d7ab --- /dev/null +++ b/hosts/hetzner-arm/profiles/vaultwarden.nix @@ -0,0 +1,20 @@ +{pkgs, ...}: { + services.vaultwarden = { + enable = true; + backupDir = "/var/backup/vaultwarden"; + environmentFile = "/var/lib/vaultwarden.env"; + config = { + DOMAIN = "https://vaultwarden.owo.monster"; + ROCKET_ADDRESS = "127.0.0.1"; + ROCKET_PORT = 8222; + }; + }; + + services.nginx.virtualHosts."vaultwarden.owo.monster" = { + forceSSL = true; + enableACME = true; + locations = { + "/".proxyPass = "http://127.0.0.1:8222"; + }; + }; +}