summaryrefslogtreecommitdiff
path: root/modules/programs/bash
diff options
context:
space:
mode:
Diffstat (limited to 'modules/programs/bash')
-rw-r--r--modules/programs/bash/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/programs/bash/default.nix b/modules/programs/bash/default.nix
index ea5afe2..6f5c8e7 100644
--- a/modules/programs/bash/default.nix
+++ b/modules/programs/bash/default.nix
@@ -61,8 +61,9 @@ in
# Don't execute this file when running in a pure nix-shell.
if test -n "$IN_NIX_SHELL"; then return; fi
- export PATH=${config.environment.systemPath}
- ${config.system.build.setEnvironment.text}
+ if [ -z "$__NIX_DARWIN_SET_ENVIRONMENT_DONE" ]; then
+ . ${config.system.build.setEnvironment}
+ fi
# Return early if not running interactively, but after basic nix setup.
[[ $- != *i* ]] && return