diff --git a/services/bitwarden_rs.nix b/services/bitwarden_rs.nix index 09ca5e8..0dd8eff 100644 --- a/services/bitwarden_rs.nix +++ b/services/bitwarden_rs.nix @@ -36,7 +36,7 @@ in { ''; }; - services.postgresqlBackup = mkIf my.services.postgresql-backup.enable { + services.postgresqlBackup = { databases = [ "bitwarden_rs" ]; }; diff --git a/services/gitea.nix b/services/gitea.nix index 42615b4..0f47cba 100644 --- a/services/gitea.nix +++ b/services/gitea.nix @@ -79,7 +79,7 @@ in { ]; }; - services.postgresqlBackup = mkIf my.services.postgresql-backup.enable { + services.postgresqlBackup = { databases = [ "gitea" ]; }; diff --git a/services/matrix.nix b/services/matrix.nix index 86aeefa..25b5b98 100644 --- a/services/matrix.nix +++ b/services/matrix.nix @@ -36,7 +36,7 @@ in { package = pkgs.postgresql_12; }; - services.postgresqlBackup = mkIf my.services.postgresql-backup.enable { + services.postgresqlBackup = { databases = [ "matrix-synapse" ]; }; diff --git a/services/miniflux.nix b/services/miniflux.nix index 35a5fe2..297eba7 100644 --- a/services/miniflux.nix +++ b/services/miniflux.nix @@ -29,7 +29,7 @@ in { config = mkIf cfg.enable { # services.postgresql is automatically enabled by services.miniflux, let's # back it up - services.postgresqlBackup = mkIf my.services.postgresql-backup.enable { + services.postgresqlBackup = { databases = [ "miniflux" ]; };