Compare commits

..

No commits in common. "0cf16198a85c02311315ce4901e11b96e36a0134" and "b04d9e51a188b3f6feb527e4fc2a7534714bafd9" have entirely different histories.

7 changed files with 6 additions and 12 deletions

View file

@ -36,7 +36,7 @@ in {
'';
};
services.postgresqlBackup = {
services.postgresqlBackup = mkIf my.services.postgresql-backup.enable {
databases = [ "bitwarden_rs" ];
};

View file

@ -14,7 +14,6 @@
./nextcloud.nix
./nginx.nix
./postgresql-backup.nix
./postgresql.nix
./tgv.nix
./transmission.nix
./wireguard.nix

View file

@ -79,7 +79,7 @@ in {
];
};
services.postgresqlBackup = {
services.postgresqlBackup = mkIf my.services.postgresql-backup.enable {
databases = [ "gitea" ];
};

View file

@ -33,9 +33,10 @@ in {
config = lib.mkIf cfg.enable {
services.postgresql = {
enable = true;
package = pkgs.postgresql_12;
};
services.postgresqlBackup = {
services.postgresqlBackup = mkIf my.services.postgresql-backup.enable {
databases = [ "matrix-synapse" ];
};

View file

@ -29,7 +29,7 @@ in {
config = mkIf cfg.enable {
# services.postgresql is automatically enabled by services.miniflux, let's
# back it up
services.postgresqlBackup = {
services.postgresqlBackup = mkIf my.services.postgresql-backup.enable {
databases = [ "miniflux" ];
};

View file

@ -14,6 +14,7 @@ in
};
config = lib.mkIf cfg.enable {
# FIXME: set postgresql package globally
services.postgresql = {
enable = true;

View file

@ -1,7 +0,0 @@
{ config, pkgs, ... }:
{
# set postgresql version so we don't get any bad surprise
config.services.postgresql = {
package = pkgs.postgresql_12;
};
}