1 import ./make-test-python.nix (
8 name = "greetd-no-shadow";
9 meta = with pkgs.lib.maintainers; {
22 users.groups.alice = { };
24 # This means login(1) breaks, so we must use greetd/agreety instead.
25 security.shadow.enable = false;
31 command = "${pkgs.greetd.greetd}/bin/agreety --cmd bash";
40 machine.wait_for_unit("multi-user.target")
41 machine.wait_until_succeeds("pgrep -f 'agretty.*tty1'")
42 machine.screenshot("postboot")
44 with subtest("Log in as alice on a virtual console"):
45 machine.wait_until_tty_matches("1", "login: ")
46 machine.send_chars("alice\n")
47 machine.wait_until_tty_matches("1", "login: alice")
48 machine.wait_until_succeeds("pgrep login")
49 machine.wait_until_tty_matches("1", "Password: ")
50 machine.send_chars("foobar\n")
51 machine.wait_until_succeeds("pgrep -u alice bash")
52 machine.send_chars("touch done\n")
53 machine.wait_for_file("/home/alice/done")