VEGAS/bitwarden: bitwarden_rs -> vaultwarden

This commit is contained in:
Max Headroom 2021-12-02 22:16:09 +01:00
parent ed766b76fe
commit d9a9ff0265

View file

@ -6,7 +6,7 @@ with tools.nginx;
services.nginx.virtualHosts = mappers.mapSubdomains { services.nginx.virtualHosts = mappers.mapSubdomains {
keychain = vhosts.proxy "http://127.0.0.1:${config.portsStr.bitwarden}"; keychain = vhosts.proxy "http://127.0.0.1:${config.portsStr.bitwarden}";
}; };
services.bitwarden_rs = { services.vaultwarden = {
enable = true; enable = true;
backupDir = "/srv/storage/private/bitwarden/backups"; backupDir = "/srv/storage/private/bitwarden/backups";
config = { config = {
@ -15,8 +15,8 @@ with tools.nginx;
}; };
#environmentFile = ""; # TODO: agenix #environmentFile = ""; # TODO: agenix
}; };
systemd.services.bitwarden_rs.serviceConfig = { systemd.services.vaultwarden.serviceConfig = {
ReadWriteDirectories = "/srv/storage/private/bitwarden"; ReadWriteDirectories = "/srv/storage/private/bitwarden";
}; };
systemd.services.backup-bitwarden_rs.environment.DATA_FOLDER = lib.mkForce config.services.bitwarden_rs.config.dataFolder; systemd.services.backup-vaultwarden.environment.DATA_FOLDER = lib.mkForce config.services.vaultwarden.config.dataFolder;
} }