From 22560132c5985d31b76ba415eb37b56252bc9a7f Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Tue, 11 Aug 2026 12:50:43 +0100 Subject: [PATCH] initialize Nix profile in zsh Change-Id: Ida628b90780adf2cf0b8e0d4b452576e6a6a6964 --- modules/home/shell/default.nix | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.51.2