1 import ../make-test-python.nix (
7 maintainers = with lib.maintainers; [ sigmanificient ];
13 # We create a custom Qtile configuration file that adds a widget from
14 # qtile-extras to the bar. This ensure that the qtile-extras package
15 # also works, and that extraPackages behave as expected.
17 config-deriv = pkgs.callPackage ./config.nix { };
22 ../common/user-account.nix
24 test-support.displayManager.auto.user = "alice";
26 services.xserver.windowManager.qtile = {
28 configFile = "${config-deriv}/config.py";
29 extraPackages = ps: [ ps.qtile-extras ];
32 services.displayManager.defaultSession = lib.mkForce "qtile";
34 environment.systemPackages = [ pkgs.kitty ];
38 with subtest("ensure x starts"):
40 machine.wait_for_file("/home/alice/.Xauthority")
41 machine.succeed("xauth merge ~alice/.Xauthority")
43 with subtest("ensure client is available"):
44 machine.succeed("qtile --version")
46 with subtest("ensure we can open a new terminal"):
48 machine.send_key("meta_l-ret")
49 machine.wait_for_window(r"alice.*?machine")
51 machine.screenshot("terminal")