Skip to content

Commit

Permalink
source nix-daemon initialization manually
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanshelly committed Oct 21, 2020
1 parent 5815236 commit 4a33a91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
return 1
}

# source nix initialization script if `nix-env` is not active in the environment
# TODO: figure out cleaner solution to avoid issues when `/etc/zshrc` is moved
command -v nix-env > /dev/null || {
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
}

"$DOTFILES/infra/scripts/component_enabled.sh" 'zsh' || return 0

source "$DOTFILES/zsh/path.zsh"
Expand Down

0 comments on commit 4a33a91

Please sign in to comment.