From fa0e2b5d641e221c580e3b916d5b3a513144e7f5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 12 Feb 2022 14:16:05 -0800 Subject: hosts: load services at the host level These services are not configured at the user level, but at the host level. We might need a better separation in the future, in case I don't use xserver for example. --- hosts/common/desktop/xserver.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'hosts') diff --git a/hosts/common/desktop/xserver.nix b/hosts/common/desktop/xserver.nix index 7537863..b02dc01 100644 --- a/hosts/common/desktop/xserver.nix +++ b/hosts/common/desktop/xserver.nix @@ -20,4 +20,19 @@ i3.enable = true; }; }; + + services = { + dbus.packages = [ pkgs.gcr ]; + gnome.gnome-keyring.enable = true; + gvfs.enable = 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 + ''; + homeBinInPath = true; + localBinInPath = true; + }; } -- cgit 1.4.1