about summary refs log tree commit diff
path: root/tests/i3.nix
blob: e0842bc67174774817eafafb66ae8e493311901f (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
import ./make-test.nix ({ pkgs, ... }: {
  name = "i3";

  machine = { lib, ... }: {
    imports = [ <nixpkgs/nixos/tests/common/x11.nix> ];

    vuizvui.user.aszlig.profiles.base.enable = true;
    vuizvui.user.aszlig.services.i3.enable = true;

    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");
  '';
})