about summary refs log tree commit diff
path: root/tests/aszlig/i3.nix
blob: c6b84b76a27347296f7f46e2e5d4d444bcd657fd (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
{ 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");
  '';
}