From c8afd4a3e99642bf618ee7d9d9d556617dc20ecc Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 18 Aug 2023 06:07:57 +0200 Subject: window-manager: only run nm-applet if network-manager is in use --- system/settings/programs/window-manager.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system/settings') diff --git a/system/settings/programs/window-manager.nix b/system/settings/programs/window-manager.nix index e22609fe..bbe4c638 100644 --- a/system/settings/programs/window-manager.nix +++ b/system/settings/programs/window-manager.nix @@ -1,5 +1,6 @@ { config , pkgs +, lib , ... }: { services.xserver = { @@ -21,8 +22,9 @@ sessionCommands = '' ${pkgs.xorg.xrdb}/bin/xrdb -merge $HOME/.xresources/main ${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr -solid '#4d4d4c' + '' ++ (lib.optionalString config.networking.networkmanager.enable '' ${pkgs.networkmanagerapplet}/bin/nm-applet & - ''; + ''); }; xautolock = { enable = true; -- cgit 1.4.1