make vaultwarden a module and enable ssh-agent feature

This commit is contained in:
cy 2025-03-04 13:00:48 -05:00
parent a6db9e3b8a
commit b5e3bf8e54
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
5 changed files with 37 additions and 22 deletions

View file

@ -406,14 +406,5 @@
enableTCPIP = true;
};
services.vaultwarden = {
enable = true;
dbBackend = "postgresql";
environmentFile = config.sops.secrets."vaultwarden/env".path;
config = {
ROCKET_ADDRESS = "0.0.0.0";
ROCKET_PORT = "8081";
DATABASE_URL = "postgresql://vaultwarden:vaultwarden@127.0.0.1:5432/vaultwarden";
};
};
my.vaultwarden.enable = true;
}