about summary refs log tree commit diff
path: root/users/fcuny/cli/zsh.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/fcuny/cli/zsh.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/fcuny/cli/zsh.nix b/users/fcuny/cli/zsh.nix
index be827b4..3358e50 100644
--- a/users/fcuny/cli/zsh.nix
+++ b/users/fcuny/cli/zsh.nix
@@ -16,6 +16,8 @@
     };
     initExtra = ''
       source ${config.xdg.configHome}/zsh/personal/init.zsh
+      # Activate home-manager environment, if not already enabled
+      [ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
     '';
   };
 }