summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-05-30 00:51:36 +0300
committerKyren223 <contact@kyren.codes>2026-05-30 00:51:36 +0300
commit6a47a25f71dc460e409397169c62e8fd65c9a077 (patch)
treeda3bbb7afcb602122f3a9ab304317747b34b9828
parent34ed970d0f1199156f398cfbaad1abafc2614f38 (diff)
add stuff for keychron to work
-rw-r--r--modules/desktop.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/desktop.nix b/modules/desktop.nix
index e93d5be..3b3bc21 100644
--- a/modules/desktop.nix
+++ b/modules/desktop.nix
@@ -21,6 +21,15 @@
password = "";
};
+ hardware.keyboard.qmk.enable = true;
+ services.udev.extraRules = ''
+ # Match ANY Keychron device via hidraw (covers Q1 HE in all modes)
+ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", MODE="0666", TAG+="uaccess", TAG+="udev-acl"
+
+ # STM bootloader for flashing firmware
+ SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0666", TAG+="uaccess"
+ '';
+
security.sudo.extraRules = [
{
users = [ "webzfs" ];