Compare commits
2 commits
b04d9e51a1
...
0cf16198a8
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | 0cf16198a8 | ||
Antoine Martin | 6174bcd165 |
|
@ -36,7 +36,7 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
services.postgresqlBackup = mkIf my.services.postgresql-backup.enable {
|
||||
services.postgresqlBackup = {
|
||||
databases = [ "bitwarden_rs" ];
|
||||
};
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
./nextcloud.nix
|
||||
./nginx.nix
|
||||
./postgresql-backup.nix
|
||||
./postgresql.nix
|
||||
./tgv.nix
|
||||
./transmission.nix
|
||||
./wireguard.nix
|
||||
|
|
|
@ -79,7 +79,7 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
services.postgresqlBackup = mkIf my.services.postgresql-backup.enable {
|
||||
services.postgresqlBackup = {
|
||||
databases = [ "gitea" ];
|
||||
};
|
||||
|
||||
|
|
|
@ -33,10 +33,9 @@ in {
|
|||
config = lib.mkIf cfg.enable {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_12;
|
||||
};
|
||||
|
||||
services.postgresqlBackup = mkIf my.services.postgresql-backup.enable {
|
||||
services.postgresqlBackup = {
|
||||
databases = [ "matrix-synapse" ];
|
||||
};
|
||||
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# FIXME: set postgresql package globally
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
|
||||
|
|
7
services/postgresql.nix
Normal file
7
services/postgresql.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
# set postgresql version so we don't get any bad surprise
|
||||
config.services.postgresql = {
|
||||
package = pkgs.postgresql_12;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue