From b472f79927c903bcfb5b758a75377629d354112f Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Wed, 27 Mar 2024 09:52:43 +0100 Subject: [PATCH] modules: exclude more environment variables Remove some more environment variables and update corresponding option description. --- src/modules/top-level.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/top-level.nix b/src/modules/top-level.nix index 1e8f1a363..f5207eee5 100644 --- a/src/modules/top-level.nix +++ b/src/modules/top-level.nix @@ -70,15 +70,17 @@ in unsetEnvVars = lib.mkOption { type = types.listOf types.str; - description = "Remove these list of env vars from being exported to keep the shell/direnv more lean."; + description = "A list of removed environment variables to make the shell/direnv more lean."; # manually determined with knowledge from https://nixos.wiki/wiki/C default = [ "HOST_PATH" "NIX_BUILD_CORES" "__structuredAttrs" + "builder" "buildInputs" "buildPhase" - "builder" + "cmakeFlags" + "configureFlags" "depsBuildBuild" "depsBuildBuildPropagated" "depsBuildTarget" @@ -89,6 +91,8 @@ in "depsTargetTargetPropagated" "doCheck" "doInstallCheck" + "dontAddDisableDepTrack" + "mesonFlags" "nativeBuildInputs" "out" "outputs"