On Mon, Jul 28, 2008 at 15:23, Marc Weber <[EMAIL PROTECTED]> wrote:
> Hi,
>
> sometimes it happens that i want to use an application (eg in
> localCommands or cron jobs etc) which is not in the system path..
>
> Is the way to change all those options from
>        cron = { systemJobs = [ "* * * * * echo helloworld "]; };
> to
>        cron = pkgs : { systemJobs = [ "* * * * * ${pkgs.myecho}/bin/echo 
> helloworld "]; };
> or would you prefer
>
>
> pkgs : {
>        # the system configuration
> }
>
> making configuration.nix a function rather than an attr set?
> The latter would mean less tweaking and less remembering

I prefer the second solution.  Otherwise you have no insurance that
the pkgs arguments are identicals.  Moreover this will ease the
documentation because function cannot not be serialize yet.

-- 
Nicolas Pierron
- If you are doing something twice then you should try to do it once.
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to