From 9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 28 Sep 2019 20:26:47 +0200 Subject: Move NetworkManager applet to network-manager configuration --- modules/hardware/network-manager.nix | 4 ++++ modules/programs/window-manager.nix | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/hardware/network-manager.nix b/modules/hardware/network-manager.nix index 04480a8..322e222 100644 --- a/modules/hardware/network-manager.nix +++ b/modules/hardware/network-manager.nix @@ -5,6 +5,10 @@ dns = "unbound"; }; + services.xserver.displayManager.sessionCommands = '' + ${pkgs.networkmanagerapplet}/bin/nm-applet & + ''; + environment.systemPackages = with pkgs; [ networkmanagerapplet ]; diff --git a/modules/programs/window-manager.nix b/modules/programs/window-manager.nix index bdc522e..1d3501f 100644 --- a/modules/programs/window-manager.nix +++ b/modules/programs/window-manager.nix @@ -11,7 +11,6 @@ sessionCommands = '' ${pkgs.xorg.xrdb}/bin/xrdb -merge $HOME/.xresources/main ${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr -solid '#4d4d4c' - ${pkgs.networkmanagerapplet}/bin/nm-applet & ''; }; xautolock = { -- cgit 1.4.1