Merge pull request #225055 from jtrees/update-wooting-udev-rules

wooting: update udev rules

authored by Sandro and committed by GitHub dfcffbd7 a5caad99

+18 -6
+2 -2
nixos/modules/hardware/wooting.nix
··· 2 2 3 3 with lib; 4 4 { 5 - options.hardware.wooting.enable = 6 - mkEnableOption (lib.mdDoc "support for Wooting keyboards"); 5 + options.hardware.wooting.enable = mkEnableOption (lib.mdDoc ''support for Wooting keyboards. 6 + Note that users must be in the "input" group for udev rules to apply''); 7 7 8 8 config = mkIf config.hardware.wooting.enable { 9 9 environment.systemPackages = [ pkgs.wootility ];
+3 -3
pkgs/os-specific/linux/wooting-udev-rules/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "wooting-udev-rules"; 5 - version = "20210525"; 5 + version = "unstable-2023-03-31"; 6 6 7 - # Source: https://wooting.helpscoutdocs.com/article/68-wootility-configuring-device-access-for-wootility-under-linux-udev-rules 7 + # Source: https://help.wooting.io/en/article/wootility-configuring-device-access-for-wootility-under-linux-udev-rules-r6lb2o/ 8 8 src = [ ./wooting.rules ]; 9 9 10 10 dontUnpack = true; ··· 14 14 ''; 15 15 16 16 meta = with lib; { 17 - homepage = "https://wooting.helpscoutdocs.com/article/34-linux-udev-rules"; 17 + homepage = "https://help.wooting.io/en/article/wootility-configuring-device-access-for-wootility-under-linux-udev-rules-r6lb2o/"; 18 18 description = "udev rules that give NixOS permission to communicate with Wooting keyboards"; 19 19 platforms = platforms.linux; 20 20 license = "unknown";
+13 -1
pkgs/os-specific/linux/wooting-udev-rules/wooting.rules
··· 20 20 SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1102", MODE:="0660", GROUP="input" 21 21 SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1102", MODE:="0660", GROUP="input" 22 22 23 - 24 23 # Wooting Two 25 24 SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1200", MODE:="0660", GROUP="input" 26 25 SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1200", MODE:="0660", GROUP="input" ··· 56 55 57 56 # Wooting Two HE update mode 58 57 SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="122f", MODE:="0660", GROUP="input" 58 + 59 + # Wooting Two HE (ARM) 60 + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1230", MODE:="0660", GROUP="input" 61 + SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1230", MODE:="0660", GROUP="input" 62 + # Wooting Two HE Alt-gamepad mode 63 + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1231", MODE:="0660", GROUP="input" 64 + SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1231", MODE:="0660", GROUP="input" 65 + # Wooting Two HE 2nd Alt-gamepad mode 66 + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1232", MODE:="0660", GROUP="input" 67 + SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1232", MODE:="0660", GROUP="input" 68 + 69 + # Wooting Two HE (ARM) update mode 70 + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="123f", MODE:="0660", GROUP="input" 59 71 60 72 # Wooting 60HE 61 73 SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", ATTRS{idProduct}=="1300", MODE:="0660", GROUP="input"