nix-deploy/config/hosts/wind/services/vaultwarden.nix

26 lines
700 B
Nix
Raw Normal View History

2021-09-22 15:31:20 +02:00
{ config, ... }:
{
services.vaultwarden = {
enable = true;
environmentFile = config.secrets.files.vaultwarden_env.file;
2021-09-23 08:34:01 +02:00
backupDir = "/var/lib/bitwarden_rs/backup";
2021-09-22 15:31:20 +02:00
config = {
domain = "https://vault.graven.dev";
2021-09-23 16:45:06 +02:00
signupsAllowed = false;
2021-09-22 15:31:20 +02:00
rocketPort = 8812;
ipHeader = "X-Real-IP";
websocketEnabled = true;
websocketAddress = "127.0.0.1";
websocketPort = "3012";
2021-09-23 08:34:01 +02:00
#dataDir = "/var/lib/vaultwarden";
2021-09-22 15:31:20 +02:00
smtpHost = "smtp.soverin.net";
smtpFrom = "vaultwarden@graven.dev";
smtpFromName = "Vaultwarden";
smtpPort = 465;
smtpSsl = true;
smtpExplicitTls = true;
smtpAuthMechanism = "Login";
};
};
}