From 14a8532ee0f569d101d14acdb4f1f4ea750b8ba2 Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Sun, 15 Jul 2012 06:25:08 +0200 Subject: [PATCH] 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 --- modules/security/sudo.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/security/sudo.nix b/modules/security/sudo.nix index 76c325d8d8f..e3e463e155f 100644 --- a/modules/security/sudo.nix +++ b/modules/security/sudo.nix @@ -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