Skip to content

Commit

Permalink
Copy nix and home-manager init to zprofile
Browse files Browse the repository at this point in the history
This is a workaround for macOS's path_helper stuff in /etc/zprofile:

- NixOS/nix#4169
- LnL7/nix-darwin#122
  • Loading branch information
bcc32 committed May 27, 2021
1 parent 5b7fed2 commit 49106f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions runcoms/zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,14 @@ path=(
)

zprofile_sourced=1

# Redundant with .zshenv as a workaround for:
# - https://github.com/NixOS/nix/issues/4169
# - https://github.com/LnL7/nix-darwin/issues/122
if [ -e ~/.nix-profile/etc/profile.d/nix.sh ]; then
. ~/.nix-profile/etc/profile.d/nix.sh
fi

if [ -e ~/.nix-profile/etc/profile.d/hm-session-vars.sh ]; then
. ~/.nix-profile/etc/profile.d/hm-session-vars.sh
fi

0 comments on commit 49106f9

Please sign in to comment.