Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ lib, ... }:
|
|
{
|
|
name = "lemurs-xorg-script";
|
|
meta = with lib.maintainers; {
|
|
maintainers = [
|
|
nullcube
|
|
stunkymonkey
|
|
];
|
|
};
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
imports = [ ../common/user-account.nix ];
|
|
|
|
services.displayManager.lemurs.enable = true;
|
|
|
|
services.xserver.enable = true;
|
|
|
|
environment.etc."lemurs/wms/icewm" = {
|
|
mode = "755";
|
|
text = ''
|
|
#! /bin/sh
|
|
exec ${pkgs.icewm}/bin/icewm-session
|
|
'';
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
|
|
machine.wait_for_unit("multi-user.target")
|
|
machine.wait_until_succeeds("pgrep -f 'lemurs.*tty1'")
|
|
machine.screenshot("postboot")
|
|
|
|
with subtest("Log in as alice to icewm"):
|
|
machine.send_chars("\n")
|
|
machine.send_chars("alice\n")
|
|
machine.sleep(1)
|
|
machine.send_chars("foobar\n")
|
|
machine.wait_until_succeeds("pgrep -u alice icewm")
|
|
machine.sleep(10)
|
|
machine.succeed("pgrep -u alice icewm")
|
|
machine.screenshot("postlogin")
|
|
'';
|
|
}
|