diff --git a/modules/environment/default.nix b/modules/environment/default.nix index 377a9594..43959aec 100644 --- a/modules/environment/default.nix +++ b/modules/environment/default.nix @@ -219,6 +219,7 @@ in system.build.setEnvironment = pkgs.writeText "set-environment" '' # Prevent this file from being sourced by child shells. + if [ -n "${__NIX_DARWIN_SET_ENVIRONMENT_DONE:-}" ]; then return; fi export __NIX_DARWIN_SET_ENVIRONMENT_DONE=1 export PATH=${config.environment.systemPath}