NixOS-Config/nixos/server/vaultwarden.nix

25 lines
665 B
Nix
Raw Normal View History

2024-08-24 22:16:51 -04:00
{
services.vaultwarden = let
2024-08-24 22:32:58 -04:00
secrets = import ../../../secrets.nix;
2024-08-24 22:16:51 -04:00
in {
enable = true;
config = {
DOMAIN = "https://warden.${secrets.jimDomain}";
SIGNUPS_ALLOWED = false;
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = 8222;
ROCKET_LOG = "critical";
# Smtp email
SMTP_HOST = "mx.${secrets.jimDomain}";
SMTP_FROM = "Jimbo's Vaultwarden <noreply@${secrets.jimDomain}>";
SMTP_FROM_NAME = "Vaultwarden";
SMTP_USERNAME = "noreply@${secrets.jimDomain}";
SMTP_PASSWORD = secrets.noreplyPassword;
SMTP_SECURITY = "starttls";
SMTP_PORT = 587;
SMTP_TIMEOUT = 15;
};
};
}