[Nix-dev] Re: nixos-rebuild and pkgs - no env var?

Ludovic Courtès ludo at gnu.org
Thu Mar 13 10:35:16 CET 2008


Hi,

Marc Weber <marco-oweber at gmx.de> writes:

> today I've noticed that you can pass NIX_CONFIG and NIXOS when running
> nixos-rebuild.. However the code compiling nix first has the hardcoded
> path
> /etc/nixos/pkgs .. does this make sense?
> Maybe we should introduce
> NIXOS_PKGS here as well ?

The `$NIXOS' variable can also serve that purpose.  I always do:

  # NIXOS=/home/ludo/src/nixos/trunk nixos-rebuild

And that directory points to my local copy of Nixpkgs under my user home
dir.

Thanks,
Ludovic.




More information about the nix-dev mailing list