ma services: ensure state is backed up

This commit is contained in:
makefu 2022-06-06 21:15:49 +02:00
parent 67693d4eb4
commit 37006c2198
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 7 additions and 1 deletions

View File

@ -1,8 +1,9 @@
{pkgs, ... }: {pkgs, ... }:
# state: /var/lib/bitlbee
{ {
services.bitlbee = { services.bitlbee = {
enable = true; enable = true;
libpurple_plugins = [ pkgs.telegram-purple pkgs.pidgin-skypeweb]; libpurple_plugins = [ pkgs.telegram-purple pkgs.pidgin-skypeweb];
}; };
users.users.makefu.packages = with pkgs; [ weechat tmux ];
state = [ "/var/lib/bitlbee" ];
} }

View File

@ -23,6 +23,11 @@ in {
{ name = "vaultwarden"; ensurePermissions."DATABASE bitwarden" = "ALL PRIVILEGES"; } { name = "vaultwarden"; ensurePermissions."DATABASE bitwarden" = "ALL PRIVILEGES"; }
]; ];
}; };
services.postgresqlBackup = {
enable = true;
databases = [ "bitwarden" "vaultwarden" ];
};
services.nginx.virtualHosts."bw.euer.krebsco.de" ={ services.nginx.virtualHosts."bw.euer.krebsco.de" ={
forceSSL = true; forceSSL = true;