From c4828bf40255b4a8b9b87bf7336b4fd49a4c3f60 Mon Sep 17 00:00:00 2001 From: glenn Date: Wed, 23 Oct 2024 15:05:38 +0200 Subject: [PATCH] disable reg on pw --- vaultwarden.nix | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/vaultwarden.nix b/vaultwarden.nix index 99b9ba9..8f85d47 100644 --- a/vaultwarden.nix +++ b/vaultwarden.nix @@ -1,33 +1,34 @@ -{ ... }: - -let +{...}: let domain = "pw.sondell.org"; port = "8222"; -in -{ - # +in { + # services.vaultwarden = { enable = true; + config = { + ROCKET_ADDRESS = "::1"; + ROCKET_PORT = 8222; + SIGNUPS_ALLOWED = false; + }; }; - services.restic.backups = { - "vaultwarden" = { - passwordFile = "/etc/nixos/.secrets/restic_pw"; - repository = "sftp:Glenn@nas:/home/back/vaultwarden/restic"; - initialize = true; - paths = [ - "/var/lib/bitwarden_rs" - ]; - user = "sondell"; - timerConfig.OnCalendar = "02:05"; - pruneOpts = [ - "--keep-daily 10" - "--keep-weekly 5" - "--keep-monthly 12" - "--keep-yearly 75" - ]; - }; + "vaultwarden" = { + passwordFile = "/etc/nixos/.secrets/restic_pw"; + repository = "sftp:Glenn@nas:/home/back/vaultwarden/restic"; + initialize = true; + paths = [ + "/var/lib/bitwarden_rs" + ]; + user = "sondell"; + timerConfig.OnCalendar = "02:05"; + pruneOpts = [ + "--keep-daily 10" + "--keep-weekly 5" + "--keep-monthly 12" + "--keep-yearly 75" + ]; + }; }; services.nginx.virtualHosts.${domain} = { forceSSL = true; @@ -37,4 +38,3 @@ in }; }; } -