update common secrets add vaultwarden env

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-08-18 22:19:21 -05:00
parent 4f2110fc3f
commit f3cffa2236
6 changed files with 59 additions and 23 deletions

View file

@ -1,4 +1,5 @@
{
config,
...
}:
let
@ -38,6 +39,10 @@ in
hostPath = "${hostDataDir}/backups";
isReadOnly = false;
};
"/var/secrets/vaultwarden.env" = {
hostPath = config.age.secrets.vaultwarden_env.path;
readOnly = true;
};
};
config =
{ ... }:
@ -56,6 +61,7 @@ in
enable = true;
dbBackend = "sqlite";
backupDir = "/var/lib/backups/vaultwarden";
environmentFile = "/var/secrets/vaultwarden.env";
config = {
DOMAIN = "https://vault.joshuabell.xyz";
SIGNUPS_ALLOWED = false;