1 import ./make-test-python.nix ({ lib, ...} : {
5 maintainers = with lib.maintainers; [ sigmanificient ];
8 nodes.machine = { pkgs, lib, ... }: {
9 imports = [ ./common/x11.nix ./common/user-account.nix ];
10 test-support.displayManager.auto.user = "alice";
11 services.displayManager.defaultSession = lib.mkForce "ragnar";
12 services.xserver.windowManager.ragnarwm.enable = true;
14 # Setup the default terminal of Ragnar
15 environment.systemPackages = [ pkgs.alacritty ];
19 with subtest("ensure x starts"):
21 machine.wait_for_file("/home/alice/.Xauthority")
22 machine.succeed("xauth merge ~alice/.Xauthority")
24 with subtest("ensure we can open a new terminal"):
25 # Sleeping a bit before the test, as it may help for sending keys
27 machine.send_key("meta_l-ret")
28 machine.wait_for_window(r"alice.*?machine")
30 machine.screenshot("terminal")