about summary refs log tree commit diff
path: root/tests/aszlig/i3.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aszlig/i3.nix')
-rw-r--r--tests/aszlig/i3.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/aszlig/i3.nix b/tests/aszlig/i3.nix
new file mode 100644
index 00000000..3c5a5c0c
--- /dev/null
+++ b/tests/aszlig/i3.nix
@@ -0,0 +1,41 @@
+{ pkgs, ... }:
+
+{
+  name = "i3";
+
+  machine = { lib, ... }: {
+    imports = [
+      "${import ../../nixpkgs-path.nix}/nixos/tests/common/x11.nix"
+    ];
+
+    vuizvui.user.aszlig.profiles.base.enable = true;
+
+    vuizvui.user.aszlig.services.i3 = {
+      enable = true;
+
+      workspaces."1" = {
+        label = "first";
+        assign = lib.singleton { class = "^test\$"; };
+      };
+    };
+
+    services.xserver.windowManager.default = lib.mkForce "i3";
+    /* XXX */
+    fonts = {
+      enableCoreFonts = true;
+      enableFontDir = true;
+      enableGhostscriptFonts = true;
+      fonts = [
+        pkgs.dosemu_fonts
+        pkgs.liberation_ttf
+      ];
+    };
+    /* !XXX */
+  };
+
+  testScript = { nodes, ... }: ''
+    $machine->waitForX;
+    $machine->sleep(20);
+    $machine->screenshot("i3");
+  '';
+}