about summary refs log tree commit diff
path: root/system/modules/xserver.nix
diff options
context:
space:
mode:
Diffstat (limited to 'system/modules/xserver.nix')
-rw-r--r--system/modules/xserver.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/system/modules/xserver.nix b/system/modules/xserver.nix
new file mode 100644
index 000000000000..52f04e2e6a69
--- /dev/null
+++ b/system/modules/xserver.nix
@@ -0,0 +1,19 @@
+{ config, pkgs, ... }:
+{
+  # Enable the X11 windowing system.
+  services.xserver = {
+    enable = true;
+    layout = "us";
+    xkbOptions = "caps:swapescape";
+
+    libinput.enable = true;
+
+    windowManager.i3 = {
+      enable = true;
+      extraPackages = with pkgs; [
+        i3status
+        i3lock
+      ];
+    };
+  };
+}