all repos — nixfiles @ 9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a

System and user configuration, managed by nix and home-manager

Move NetworkManager applet to network-manager configuration
Alan Pearce alan@alanpearce.eu
Sat, 28 Sep 2019 20:26:47 +0200
commit

9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a

parent

a2445532c27239fc592a54869e604037cedd72c5

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M modules/hardware/network-manager.nixmodules/hardware/network-manager.nix
@@ -5,6 +5,10 @@ enable = true;     dns = "unbound";
   };
 
+  services.xserver.displayManager.sessionCommands = ''
+    ${pkgs.networkmanagerapplet}/bin/nm-applet &
+  '';
+
   environment.systemPackages = with pkgs; [
     networkmanagerapplet
   ];
M modules/programs/window-manager.nixmodules/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 = {