about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-16 17:46:31 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-16 17:46:31 -0800
commit0c622aa0c7f3046f86de11f905aa96f70eeff81b (patch)
treecd3bab23db231830df0afa8ae10ea3c4165ae6d7 /users
parentmpd: add configuration to the module itself (diff)
downloadworld-0c622aa0c7f3046f86de11f905aa96f70eeff81b.tar.gz
home-manager: move activate logic in users' config
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
     '';
   };
 }