1 { system ? builtins.currentSystem,
3 pkgs ? import ../.. { inherit system config; }
6 with import ../lib/testing-python.nix { inherit system pkgs; };
15 nodes.machine = { ... }: {
16 imports = [ ./common/user-account.nix ];
17 services.xserver.enable = true;
18 services.xserver.displayManager.sddm.enable = true;
19 services.xserver.displayManager.defaultSession = "none+icewm";
20 services.xserver.windowManager.icewm.enable = true;
25 testScript = { nodes, ... }: let
26 user = nodes.machine.config.users.users.alice;
29 machine.wait_for_text("(?i)select your user")
30 machine.screenshot("sddm")
31 machine.send_chars("${user.password}\n")
32 machine.wait_for_file("${user.home}/.Xauthority")
33 machine.succeed("xauth merge ${user.home}/.Xauthority")
34 machine.wait_for_window("^IceWM ")
39 name = "sddm-autologin";
40 meta = with pkgs.lib.maintainers; {
41 maintainers = [ ttuegel ];
44 nodes.machine = { ... }: {
45 imports = [ ./common/user-account.nix ];
46 services.xserver.enable = true;
47 services.xserver.displayManager = {
54 services.xserver.displayManager.defaultSession = "none+icewm";
55 services.xserver.windowManager.icewm.enable = true;
58 testScript = { nodes, ... }: let
59 user = nodes.machine.config.users.users.alice;
62 machine.wait_for_file("${user.home}/.Xauthority")
63 machine.succeed("xauth merge ${user.home}/.Xauthority")
64 machine.wait_for_window("^IceWM ")
69 lib.mapAttrs (lib.const makeTest) tests