diff --git a/modules/programs/bash/bash.nix b/modules/programs/bash/bash.nix index 38ed7c7a186..1e2730b04b9 100644 --- a/modules/programs/bash/bash.nix +++ b/modules/programs/bash/bash.nix @@ -32,7 +32,6 @@ in src = ./bashrc.sh; bash = pkgs.bash; - systemPath = config.system.path; wrapperDir = config.security.wrapperDir; modulesTree = config.system.modulesTree; shellInit = config.environment.shellInit; diff --git a/modules/services/scheduling/cron.nix b/modules/services/scheduling/cron.nix index 1b283b2e01a..8408fe6e003 100644 --- a/modules/services/scheduling/cron.nix +++ b/modules/services/scheduling/cron.nix @@ -10,7 +10,7 @@ let systemCronJobsFile = pkgs.writeText "system-crontab" '' SHELL=${pkgs.bash}/bin/bash - PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin + PATH=${config.system.path}/bin:${config.system.path}/sbin MAILTO="${config.services.cron.mailto}" ${pkgs.lib.concatStrings (map (job: job + "\n") config.services.cron.systemCronJobs)} '';