7 maintainers = with lib.maintainers; [ linj ];
19 device = "/dev/input/by-id/vm-default-kbd";
25 (defsrc :name default-src
27 (deflayer default-layer :source default-src
36 # make a determinate symlink to the default vm keyboard for kmonad to use
37 services.udev.extraRules = ''
38 ACTION=="add", KERNEL=="event*", SUBSYSTEM=="input", ATTRS{name}=="QEMU Virtio Keyboard", ATTRS{id/product}=="0001", ATTRS{id/vendor}=="0627", SYMLINK+="input/by-id/vm-default-kbd"
44 service_name = "kmonad-defaultKbd"
45 machine.wait_for_unit(f"{service_name}.service")
47 with subtest("kmonad is running"):
48 machine.succeed(f"systemctl status {service_name}")
49 with subtest("kmonad symlink is created"):
50 machine.wait_for_file(f"/dev/input/by-id/{service_name}", timeout=5)