diff --git a/modules/services/backup/mysql-backup.nix b/modules/services/backup/mysql-backup.nix index 51c998a9b09f..adb9f1d74f82 100644 --- a/modules/services/backup/mysql-backup.nix +++ b/modules/services/backup/mysql-backup.nix @@ -55,10 +55,10 @@ in systemCronJobs = map mysqlBackupCron config.services.mysqlBackup.databases; }; - system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.noDepEntry '' + system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.fullDepEntry '' mkdir -m 0700 -p ${config.services.mysqlBackup.location} chown mysql ${config.services.mysqlBackup.location} - ''; + '' [ "stdio" "defaultPath" "systemConfig" "users" ]; }; } diff --git a/modules/services/backup/postgresql-backup.nix b/modules/services/backup/postgresql-backup.nix index 630b01efe0e0..61bafed7bfa4 100644 --- a/modules/services/backup/postgresql-backup.nix +++ b/modules/services/backup/postgresql-backup.nix @@ -56,10 +56,10 @@ in systemCronJobs = map postgresqlBackupCron config.services.postgresqlBackup.databases; }; - system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.noDepEntry '' + system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.fullDepEntry '' mkdir -m 0700 -p ${config.services.postgresqlBackup.location} chown root ${config.services.postgresqlBackup.location} - ''; + '' [ "stdio" "defaultPath" "systemConfig" "users" ]; }; } diff --git a/modules/services/backup/sitecopy-backup.nix b/modules/services/backup/sitecopy-backup.nix index 2966013e947b..81f124ecc63c 100644 --- a/modules/services/backup/sitecopy-backup.nix +++ b/modules/services/backup/sitecopy-backup.nix @@ -68,7 +68,7 @@ in system.activationScripts.sitecopyBackup = - pkgs.stringsWithDeps.noDepEntry '' + pkgs.stringsWithDeps.fullDepEntry '' mkdir -m 0700 -p ${stateDir} chown root ${stateDir} touch ${stateDir}/sitecopy.secrets @@ -99,7 +99,7 @@ in '' ) config.services.sitecopy.backups )} - ''; + '' [ "stdio" "defaultPath" "systemConfig" "users" ] ; }; }