about summary refs log tree commit diff
path: root/tests/aszlig/i3.nix
blob: 3c5a5c0c2474c2707b845e364f3bc0bad40a349c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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");
  '';
}