1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19:42 +01:00

Framework 16: udev rules for keyboard config

Add a udev rule to allow the keyboard modules to be reconfigured.
This commit is contained in:
Adam Dinwoodie 2024-09-28 20:18:13 +01:00 committed by mergify[bot]
parent e88d37154f
commit 25e16f6c66

View file

@ -19,6 +19,12 @@
services.udev.extraRules = ''
# Ethernet expansion card support
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
# Allow access to the keyboard modules for programming, for example by
# visiting https://keyboard.frame.work with a WebHID-compatible browser.
#
# https://community.frame.work/t/responded-help-configuring-fw16-keyboard-with-via/47176/5
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
# Needed for desktop environments to detect/manage display brightness