about summary refs log tree commit diff
path: root/hosts/common
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 /hosts/common
parentmpd: add configuration to the module itself (diff)
downloadworld-0c622aa0c7f3046f86de11f905aa96f70eeff81b.tar.gz
home-manager: move activate logic in users' config
Diffstat (limited to 'hosts/common')
-rw-r--r--hosts/common/desktop/xserver.nix5
1 files changed, 1 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;
   };