1 import ./make-test-python.nix ({ pkgs, lib, ... }:
4 seatd-test = pkgs.writeShellApplication {
5 name = "seatd-client-pid";
7 journalctl -u seatd --no-pager -b | while read -r line; do
9 *"New client connected"*)
10 line="''${line##*pid: }"
23 meta.maintainers = with lib.maintainers; [ sinanmohd ];
25 nodes.machine = { ... }: {
26 imports = [ ./common/user-account.nix ];
27 services.getty.autologinUser = "alice";
28 users.users.alice.extraGroups = [ "seat" "wheel" ];
30 fonts.enableDefaultPackages = true;
31 environment.systemPackages = with pkgs; [
37 programs.bash.loginShellInit = ''
38 [ "$(tty)" = "/dev/tty1" ] &&
39 dwl -s 'foot touch /tmp/foot_started'
42 hardware.graphics.enable = true;
43 virtualisation.qemu.options = [ "-vga none -device virtio-gpu-pci" ];
44 services.seatd.enable = true;
48 machine.wait_for_file("/tmp/foot_started")
49 machine.succeed("test $(seatd-client-pid) = $(pgrep dwl)")