summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-09-28 20:27:33 +0200
committerAlan Pearce2019-09-28 22:16:43 +0200
commit83576e0142e1973411ddb635af07e73e8c35372c (patch)
tree4b48045aba78078e7941a0ab712761f18850f928 /modules
parent9c7c0c7045593de0096e7b7b0e8f76e6d8e9293a (diff)
downloadnixos-configuration-83576e0142e1973411ddb635af07e73e8c35372c.tar.lz
nixos-configuration-83576e0142e1973411ddb635af07e73e8c35372c.tar.zst
nixos-configuration-83576e0142e1973411ddb635af07e73e8c35372c.zip
Make i3 the default window manager
Diffstat (limited to 'modules')
-rw-r--r--modules/programs/i3.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/modules/programs/i3.nix b/modules/programs/i3.nix
index b18d1bc..017f393 100644
--- a/modules/programs/i3.nix
+++ b/modules/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; [