[Nix-dev] configuration.nix and path - pkgs missing often

Nicolas Pierron nicolas.b.pierron at gmail.com
Mon Jul 28 16:58:38 CEST 2008


On Mon, Jul 28, 2008 at 15:23, Marc Weber <marco-oweber at gmx.de> 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.



More information about the nix-dev mailing list