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:
parent
45fab492fc
commit
5115e6a1d0
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue