From 37006c21985e64e8835084c7a6792ed39c2e6661 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 6 Jun 2022 21:15:49 +0200 Subject: ma services: ensure state is backed up --- makefu/2configs/bitlbee.nix | 3 ++- makefu/2configs/bitwarden.nix | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'makefu/2configs') diff --git a/makefu/2configs/bitlbee.nix b/makefu/2configs/bitlbee.nix index e955384d6..52b5d68a5 100644 --- a/makefu/2configs/bitlbee.nix +++ b/makefu/2configs/bitlbee.nix @@ -1,8 +1,9 @@ {pkgs, ... }: -# state: /var/lib/bitlbee { services.bitlbee = { enable = true; libpurple_plugins = [ pkgs.telegram-purple pkgs.pidgin-skypeweb]; }; + users.users.makefu.packages = with pkgs; [ weechat tmux ]; + state = [ "/var/lib/bitlbee" ]; } diff --git a/makefu/2configs/bitwarden.nix b/makefu/2configs/bitwarden.nix index 92c1c4e0e..cc742511c 100644 --- a/makefu/2configs/bitwarden.nix +++ b/makefu/2configs/bitwarden.nix @@ -23,6 +23,11 @@ in { { name = "vaultwarden"; ensurePermissions."DATABASE bitwarden" = "ALL PRIVILEGES"; } ]; }; + services.postgresqlBackup = { + enable = true; + databases = [ "bitwarden" "vaultwarden" ]; + }; + services.nginx.virtualHosts."bw.euer.krebsco.de" ={ forceSSL = true; -- cgit v1.2.3