2022-02-14 20:30:24 +00:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
services.vaultwarden = {
|
|
|
|
enable = true;
|
|
|
|
environmentFile = config.secrets.files.vaultwarden_env.file;
|
|
|
|
backupDir = "/var/lib/bitwarden_rs/backup";
|
|
|
|
config = {
|
|
|
|
domain = "https://vault.dotsrc.org";
|
|
|
|
signupsAllowed = false;
|
|
|
|
rocketPort = 8812;
|
|
|
|
ipHeader = "X-Real-IP";
|
|
|
|
websocketEnabled = true;
|
|
|
|
websocketAddress = "127.0.0.1";
|
|
|
|
websocketPort = "3012";
|
2022-02-15 12:51:54 +00:00
|
|
|
smtpHost = "nixaalb.org";
|
2022-02-14 20:30:24 +00:00
|
|
|
smtpFrom = "noreply@dotsrc.org";
|
|
|
|
smtpFromName = "Vaultwarden";
|
|
|
|
smtpPort = 465;
|
|
|
|
smtpSsl = true;
|
|
|
|
smtpExplicitTls = true;
|
2022-02-15 12:51:54 +00:00
|
|
|
smtpAuthMechanism = "Plain";
|
2022-02-14 20:30:24 +00:00
|
|
|
};
|
|
|
|
};
|
2022-02-15 12:51:54 +00:00
|
|
|
systemd.timers.backup-vaultwarden.timerConfig = { OnCalendar = "hourly"; };
|
2022-02-14 20:30:24 +00:00
|
|
|
}
|
|
|
|
|