all repos — nixfiles @ 83576e0142e1973411ddb635af07e73e8c35372c

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

Make i3 the default window manager
Alan Pearce alan@alanpearce.eu
Sat, 28 Sep 2019 20:27:33 +0200
commit

83576e0142e1973411ddb635af07e73e8c35372c

parent

9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a

1 files changed, 9 insertions(+), 6 deletions(-)

jump to
M modules/programs/i3.nixmodules/programs/i3.nix
@@ -1,11 +1,14 @@ { config, pkgs, ... }:
 
-{ services.xserver.windowManager.i3 = {
-    enable = true;
-    extraSessionCommands = ''
-      ${pkgs.dunst}/bin/dunst &
-      ${pkgs.sxhkd}/bin/sxhkd &
-    '';
+{ services.xserver.windowManager = {
+    default = "i3";
+    i3 = {
+      enable = true;
+      extraSessionCommands = ''
+        ${pkgs.dunst}/bin/dunst &
+        ${pkgs.sxhkd}/bin/sxhkd &
+      '';
+    };
   };
 
   environment.systemPackages = with pkgs; [