* Set NIX_CONF_DIR in cronjobs. Otherwise the garbage collector won't see

the system nix.conf.

svn path=/nixos/trunk/; revision=23561
This commit is contained in:
Eelco Dolstra 2010-08-31 12:57:47 +00:00
parent 0bfba4cbf5
commit 2ac462c3c7

View File

@ -12,6 +12,7 @@ let
SHELL=${pkgs.bash}/bin/bash
PATH=${config.system.path}/bin:${config.system.path}/sbin
MAILTO="${config.services.cron.mailto}"
NIX_CONF_DIR=/nix/etc/nix
${pkgs.lib.concatStrings (map (job: job + "\n") config.services.cron.systemCronJobs)}
'';