From 7b3bf7557d4cd2d3263425cbfa15350b4c3ed361 Mon Sep 17 00:00:00 2001 From: schererleander Date: Tue, 29 Jul 2025 02:04:35 +0200 Subject: chore: rename hosts --- hosts/desktop/wooting.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hosts/desktop/wooting.nix (limited to 'hosts/desktop/wooting.nix') diff --git a/hosts/desktop/wooting.nix b/hosts/desktop/wooting.nix new file mode 100644 index 0000000..e6217cd --- /dev/null +++ b/hosts/desktop/wooting.nix @@ -0,0 +1,30 @@ +{ config, lib, 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" + + # 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" + ''; + + environment.systemPackages = with pkgs; [ + wootility + ]; + }; +} \ No newline at end of file -- cgit v1.3.1