add NIX_CONF_DIR to sudo env_keep variables (suggested by Eelco Dolstra)

this enables nix-collect-garbage under sudo to respect nix.conf, e.g.:

    gc-keep-outputs = true
    gc-keep-derivations = true
This commit is contained in:
Florian Friesdorf 2012-07-15 06:25:08 +02:00
parent e988324534
commit 14a8532ee0
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ in
# Environment variables to keep for root and %wheel.
Defaults:root,%wheel env_keep+=LOCALE_ARCHIVE
Defaults:root,%wheel env_keep+=NIX_CONF_DIR
Defaults:root,%wheel env_keep+=NIX_PATH
Defaults:root,%wheel env_keep+=TERMINFO_DIRS