From 0c622aa0c7f3046f86de11f905aa96f70eeff81b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 16 Feb 2022 17:46:31 -0800 Subject: home-manager: move activate logic in users' config --- hosts/common/desktop/xserver.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hosts') 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; }; -- cgit 1.4.1