feature(udev): add support for vial.rocks configurable devices and add the native app as well

This commit is contained in:
2026-08-09 13:49:46 +02:00
parent 37d44b64c1
commit 62954a67b5
4 changed files with 16 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@
tree
unzip
usbutils
vial
vim
wget
which
+13
View File
@@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
# Vial-capable keyboards (lily58 pro r2g) expose a second, non-keyboard raw
# HID interface that vial.rocks drives over WebHID. Its /dev/hidraw* node is
# root-only by default, so chromium cannot open the device without this rule.
services.udev.extraRules = ''
# Vial firmware advertises itself through a magic USB serial, so this
# matches any vial board rather than just the lily58. uaccess hands the
# device to whoever owns the active seat, no group membership needed.
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", TAG+="uaccess"
'';
}