nixos-config/modules/system/services/server/vaultwarden/default.nix

30 lines
776 B
Nix
Raw Normal View History

{ config, lib, ... }:
2024-10-09 03:36:08 -04:00
{
imports = [ ./nginx ];
config = lib.mkIf config.system.server.enable {
services.vaultwarden = {
enable = true;
config = {
2025-02-25 03:03:43 -05:00
DOMAIN = "https://pass.nixfox.ca";
SIGNUPS_ALLOWED = false;
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = 8222;
ROCKET_LOG = "critical";
# Smtp email
2025-02-25 03:03:43 -05:00
SMTP_HOST = "mx.nixfox.ca";
SMTP_FROM = "noreply@nixfox.ca";
SMTP_FROM_NAME = "Vaultwarden";
2025-02-25 03:03:43 -05:00
SMTP_USERNAME = "noreply@nixfox.ca";
SMTP_PASSWORD = config.secrets.noreplyPassword;
SMTP_SECURITY = "starttls";
SMTP_PORT = 587;
SMTP_TIMEOUT = 15;
};
};
2025-02-25 03:03:43 -05:00
environment.persistence."/persist".directories = [ "/var/lib/bitwarden_rs" ];
};
}