Fix pg_backup
This commit is contained in:
parent
0493262a5e
commit
515963da25
|
@ -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",
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue