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

Marc Weber marco-oweber at gmx.de
Mon Jul 28 15:23:50 CEST 2008


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

Marc Weber



More information about the nix-dev mailing list