diff options
| author | schererleander <leander@schererleander.de> | 2025-07-30 20:52:14 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-07-30 20:52:14 +0200 |
| commit | de3e7a2fb84d6afeffe874d17dfe187afcd22d00 (patch) | |
| tree | 826fd26738844d0d357a25088f85c71b56b992f4 /hosts/desktop/wooting.nix | |
| parent | 69ef958406e557f3f8ac3a23c473b5f8c9248289 (diff) | |
feat: add desktop configuration
Diffstat (limited to 'hosts/desktop/wooting.nix')
| -rw-r--r-- | hosts/desktop/wooting.nix | 46 |
1 files changed, 19 insertions, 27 deletions
diff --git a/hosts/desktop/wooting.nix b/hosts/desktop/wooting.nix index 3f446ba..742ef29 100644 --- a/hosts/desktop/wooting.nix +++ b/hosts/desktop/wooting.nix @@ -1,35 +1,27 @@ -{ - config, - lib, - pkgs, - ... -}: +{ pkgs, ... }: { - options.wooting.enable = lib.mkEnableOption "Enable Wooting udev rules"; - config = lib.mkIf config.wooting.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" + 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 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 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" + # 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" - ''; + # Generic Wootings + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", TAG+="uaccess" + SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", TAG+="uaccess" + ''; - environment.systemPackages = with pkgs; [ - wootility - ]; - }; + environment.systemPackages = with pkgs; [ + wootility + ]; } |
