snowflake/hosts/sakura/services/vaultwarden.nix
2023-10-03 14:24:26 -04:00

16 lines
445 B
Nix

{pkgs, ...}: {
services.vaultwarden = {
enable = true;
package = pkgs.vaultwarden-postgresql;
dbBackend = "postgresql";
config = {
DOMAIN = "https://vault.flake.sh/";
SIGNUPS_ALLOWED = false;
DATABASE_URL = "postgresql://vaultwarden:vaultwarden@192.168.1.211:5432/vaultwarden";
LOG_LEVEL = "Info";
ROCKET_ADDRESS = "0.0.0.0";
ROCKET_PORT = 8222;
ROCKET_LOG = "critical";
};
};
}