diff --git a/modules/home/shell/default.nix b/modules/home/shell/default.nix index 4743062..e3d1ef4 100644 --- a/modules/home/shell/default.nix +++ b/modules/home/shell/default.nix @@ -2,6 +2,11 @@ { programs.zsh = { enable = true; + envExtra = '' + if [[ -z ''${NIX_PROFILES-} && -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]]; then + source "$HOME/.nix-profile/etc/profile.d/nix.sh" + fi + ''; autocd = true; autosuggestion.enable = true; enableCompletion = true;