diff options
Diffstat (limited to 'tests/aszlig')
-rw-r--r-- | tests/aszlig/i3.nix | 41 |
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"); + ''; +} |