This commit is contained in:
elwrcl committed 2026-10-11 00:05:04 +03:00
1 parent c5caa9e9c5
commit a8ab95f5a0
2 files changed
+12 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
{ ... }:
{
flake.nixosModules.hw-keychron =
{ pkgs, ... }:
{
services.udev.packages = [
(pkgs.writeTextDir "lib/udev/rules.d/70-keychron.rules" ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", MODE="0660", TAG+="uaccess"
'')
];
};
}
-4
View File
@@ -14,9 +14,5 @@
}
});
'';
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d030", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="0b11", MODE="0660", TAG+="uaccess", TAG+="udev-acl"
'';
};
}