blob: 408a476dc58defbade1825ae22fbbe5792ccb90e (
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
|
{ 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;
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");
'';
}
|