summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-09-28 20:26:47 +0200
committerAlan Pearce2019-09-28 22:16:43 +0200
commit9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a (patch)
tree76a60d1ac0092ce590796c8b1a139cc120e478a3
parenta2445532c27239fc592a54869e604037cedd72c5 (diff)
downloadnixfiles-9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a.tar.lz
nixfiles-9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a.tar.zst
nixfiles-9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a.zip
Move NetworkManager applet to network-manager configuration
-rw-r--r--modules/hardware/network-manager.nix4
-rw-r--r--modules/programs/window-manager.nix1
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/hardware/network-manager.nix b/modules/hardware/network-manager.nix
index 04480a8c..322e2222 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 bdc522e6..1d3501fb 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 = {