1{ pkgs, ... }:
2{
3 name = "nimdow";
4 meta = with pkgs.lib.maintainers; {
5 maintainers = [ marcusramberg ];
6 };
7
8 nodes.machine =
9 { lib, ... }:
10 {
11 imports = [
12 ./common/x11.nix
13 ./common/user-account.nix
14 ];
15 test-support.displayManager.auto.user = "alice";
16 services.displayManager.defaultSession = lib.mkForce "none+nimdow";
17 services.xserver.windowManager.nimdow.enable = true;
18 };
19
20 testScript =
21 { ... }:
22 ''
23 with subtest("ensure x starts"):
24 machine.wait_for_x()
25 machine.wait_for_file("/home/alice/.Xauthority")
26 machine.succeed("xauth merge ~alice/.Xauthority")
27
28 with subtest("ensure we can open a new terminal"):
29 machine.send_key("meta_l-ret")
30 machine.wait_for_window(r"alice.*?machine")
31 machine.screenshot("terminal")
32 '';
33}