1 import ../make-test-python.nix ({ lib, ...} : {
5 maintainers = with lib.maintainers; [ sigmanificient ];
8 nodes.machine = { pkgs, lib, ... }: let
9 # We create a custom Qtile configuration file that adds a widget from
10 # qtile-extras to the bar. This ensure that the qtile-extras package
11 # also works, and that extraPackages behave as expected.
13 config-deriv = pkgs.callPackage ./config.nix { };
15 imports = [ ../common/x11.nix ../common/user-account.nix ];
16 test-support.displayManager.auto.user = "alice";
18 services.xserver.windowManager.qtile = {
20 configFile = "${config-deriv}/config.py";
21 extraPackages = ps: [ ps.qtile-extras ];
24 services.displayManager.defaultSession = lib.mkForce "qtile";
26 environment.systemPackages = [ pkgs.kitty ];
30 with subtest("ensure x starts"):
32 machine.wait_for_file("/home/alice/.Xauthority")
33 machine.succeed("xauth merge ~alice/.Xauthority")
35 with subtest("ensure client is available"):
36 machine.succeed("qtile --version")
38 with subtest("ensure we can open a new terminal"):
40 machine.send_key("meta_l-ret")
41 machine.wait_for_window(r"alice.*?machine")
43 machine.screenshot("terminal")