Skip to content

Commit

Permalink
Use /etc/zshenv instead of /etc/zshrc for profile
Browse files Browse the repository at this point in the history
As noted in NixOS#3456 the `/etc/zshenv` file provides a better place for sourcing the nix environment.
  • Loading branch information
surajbarkale authored May 22, 2020
1 parent 5d2d0a7 commit 909d8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ readonly NIX_FIRST_BUILD_UID="30001"
# default shell profile that comes with Nix doesn't support it.
readonly NIX_ROOT="/nix"

readonly PROFILE_TARGETS=("/etc/bashrc" "/etc/profile.d/nix.sh" "/etc/zshrc")
readonly PROFILE_TARGETS=("/etc/bashrc" "/etc/profile.d/nix.sh" "/etc/zshenv")
readonly PROFILE_BACKUP_SUFFIX=".backup-before-nix"
readonly PROFILE_NIX_FILE="$NIX_ROOT/var/nix/profiles/default/etc/profile.d/nix-daemon.sh"

Expand Down

0 comments on commit 909d8cb

Please sign in to comment.