diff options
| author | schererleander <leander@schererleander.de> | 2025-11-06 19:40:05 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-11-06 19:40:41 +0100 |
| commit | 28c1de221f2565b7f5a7436ee2ec3a63c532b092 (patch) | |
| tree | e48f3994174089ac6ee5ca2e242b181201e9e8a4 /modules | |
| parent | 0b3bb4bc4356bab6f669d2f15f6c3d1ed41934c6 (diff) | |
fix: udev rules for wooting keyboards
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/services/wooting.nix | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/modules/services/wooting.nix b/modules/services/wooting.nix index fdc6ba8..6cab0b1 100644 --- a/modules/services/wooting.nix +++ b/modules/services/wooting.nix @@ -7,27 +7,8 @@ { options.nx.services.wooting.enable = lib.mkEnableOption "Wootility service"; - condition = config.services.udev.enable { - services.udev.extraRules = '' - # Wooting One Legacy - SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", TAG+="uaccess" - SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", TAG+="uaccess" - - # Wooting One update mode - SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402", TAG+="uaccess" - - # Wooting Two Legacy - SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff02", TAG+="uaccess" - SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff02", TAG+="uaccess" - - # Wooting Two update mode - SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2403", TAG+="uaccess" - - # Generic Wootings - SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", TAG+="uaccess" - SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", TAG+="uaccess" - ''; - + config = lib.mkIf config.nx.services.wooting.enable { + services.udev.packages = [ pkgs.wooting-udev-rules ]; environment.systemPackages = with pkgs; [ wootility ]; |
