keep NIX_PATH in sudo env

fixes:
file `nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

svn path=/nixos/trunk/; revision=32973
This commit is contained in:
Florian Friesdorf 2012-03-10 16:11:40 +00:00
parent 45fab492fc
commit 5115e6a1d0

View file

@ -34,6 +34,7 @@ in
# env vars to keep for root and %wheel also if not explicitly set
Defaults:root,%wheel env_keep+=LOCALE_ARCHIVE
Defaults:root,%wheel env_keep+=NIX_PATH
Defaults:root,%wheel env_keep+=TERMINFO_DIRS
# "root" is allowed to do anything.