summary refs log tree commit diff
path: root/nixos/tests/common/x11.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/common/x11.nix')
-rw-r--r--nixos/tests/common/x11.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/tests/common/x11.nix b/nixos/tests/common/x11.nix
new file mode 100644
index 00000000000..c5a7c165d12
--- /dev/null
+++ b/nixos/tests/common/x11.nix
@@ -0,0 +1,12 @@
+{ services.xserver.enable = true;
+
+  # Automatically log in.
+  services.xserver.displayManager.auto.enable = true;
+
+  # Use IceWM as the window manager.
+  services.xserver.windowManager.default = "icewm";
+  services.xserver.windowManager.icewm.enable = true;
+
+  # Don't use a desktop manager.
+  services.xserver.desktopManager.default = "none";
+}