Compare commits

..

2 commits

View file

@ -1,4 +1,4 @@
{ lib, config, ... }: {
{ lib, config, pkgs, ... }: {
imports = [
../../common
../../profiles/headless.nix
@ -30,10 +30,9 @@
backupPrepareCommand = ''
umask 0077
rm -f -- ${pgBackup}
${lib.getExe' config.services.postgresql.package "pg_dumpall"} \
-U ${config.services.postgresql.superUser} \
-f ${pgBackup}
rm -f -- ${pgBackup}
${lib.getExe pkgs.su} -c '${lib.getExe' config.services.postgresql.package "pg_dumpall"}' \
${config.services.postgresql.superUser} >${pgBackup}
'';
backupCleanupCommand = ''