snowflake/hosts/sakura/services/vaultwarden.nix

31 lines
815 B
Nix
Raw Normal View History

{
pkgs,
config,
...
}: {
sops.secrets.vaultwarden-env = {};
2023-09-09 13:13:00 -04:00
services.vaultwarden = {
enable = true;
package = pkgs.vaultwarden-postgresql;
dbBackend = "postgresql";
config = {
2023-10-03 14:24:26 -04:00
DOMAIN = "https://vault.flake.sh/";
2023-09-13 10:23:25 -04:00
SIGNUPS_ALLOWED = false;
2023-09-09 13:13:00 -04:00
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";
# mailer
SMTP_HOST = "mail.smtp2go.com";
SMTP_PORT = 587;
SMTP_SECURITY = "starttls";
SMTP_FROM = "vault@flake.sh";
SMTP_FROM_NAME = "Vaultwarden";
SMTP_USERNAME = "vaultwarden-mailer";
SMTP_TIMEOUT = 15;
2023-09-09 13:13:00 -04:00
};
environmentFile = config.sops.secrets.vaultwarden-env.path;
2023-09-09 13:13:00 -04:00
};
}