[Nix-dev] Re: [Nix-commits] SVN commit: nix - 18595 - eelco - nixos/trunk/modules/services/scheduling

Nicolas Pierron nicolas.b.pierron at gmail.com
Tue Nov 24 15:41:11 CET 2009


Hi,

On Tue, Nov 24, 2009 at 15:20, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> Log:
> * Run cronjobs with a more userfriendly $PATH.
>
> Modified: nixos/trunk/modules/services/scheduling/cron.nix
> ===================================================================
> --- nixos/trunk/modules/services/scheduling/cron.nix    2009-11-24 14:19:20 UTC (rev 18594)
> +++ nixos/trunk/modules/services/scheduling/cron.nix    2009-11-24 14:20:33 UTC (rev 18595)
> @@ -9,8 +9,8 @@
>   # Put all the system cronjobs together.
>   systemCronJobsFile = pkgs.writeText "system-crontab"
>     ''
> -      SHELL=${pkgs.bash}/bin/sh
> -      PATH=${pkgs.coreutils}/bin:${pkgs.findutils}/bin:${pkgs.gnused}/bin:${pkgs.su}/bin
> +      SHELL=${pkgs.bash}/bin/bash
> +      PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin

I would prefer something like ${config.system.path}/bin because you
may run "nixos-rebuild build" to test your crontab.

>       MAILTO="${config.services.cron.mailto}"
>       ${pkgs.lib.concatStrings (map (job: job + "\n") config.services.cron.systemCronJobs)}
>     '';


-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
Richard Feynman - I think I can safely say that nobody understands
quantum mechanics.



More information about the nix-dev mailing list