diff options
-rw-r--r-- | hosts/common/desktop/xserver.nix | 5 | ||||
-rw-r--r-- | users/fcuny/cli/zsh.nix | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/hosts/common/desktop/xserver.nix b/hosts/common/desktop/xserver.nix index 3b61e02..58f0578 100644 --- a/hosts/common/desktop/xserver.nix +++ b/hosts/common/desktop/xserver.nix @@ -35,10 +35,7 @@ security.pam.services = { login.enableGnomeKeyring = true; }; environment = { - # Activate home-manager environment, if not already enabled - loginShellInit = '' - [ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null - ''; + pathsToLink = [ "/libexec" ]; homeBinInPath = true; localBinInPath = true; }; 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 ''; }; } |