Compare commits

..

2 commits

View file

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