1
0
Fork 0

Fix pg_backup

This commit is contained in:
Malte Brandy 2020-12-09 13:10:13 +01:00
parent 0493262a5e
commit 515963da25
3 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@
"type": "git"
},
"nixos-unstable": {
"branch": "nixos-unstable",
"branch": "nixos-unstable-small",
"description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels",
"homepage": null,
"owner": "NixOS",

View file

@ -96,7 +96,7 @@ let
pg_backup = {
script = let name = "nextcloud-psql-${hostname}";
in ''
${pkgs.postgresql}/bin/pg_dump nextcloud > /var/lib/db-backup-dumps/cur/${name}
${config.services.postgresql.package}/bin/pg_dump nextcloud > /var/lib/db-backup-dumps/cur/${name}
'';
serviceConfig = {
User = "nextcloud";

View file

@ -39,7 +39,7 @@ in {
systemd.services."pg_backup" = {
script = let name = "matrix-synapse";
in ''
${pkgs.postgresql}/bin/pg_dump matrix-synapse > /var/lib/db-backup-dumps/cur/${name}
${config.services.postgresql.package}/bin/pg_dump matrix-synapse > /var/lib/db-backup-dumps/cur/${name}
'';
serviceConfig = {
User = "matrix-synapse";