aboutsummaryrefslogtreecommitdiff
path: root/hosts/adam/wooting.nix
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-08-17 00:03:59 +0200
committerschererleander <leander@schererleander.de>2025-08-17 00:07:48 +0200
commit24c99cf22e012e07509505b4efdc528589008dd4 (patch)
tree7a1eaa310fe747fe910286eac3c047f936a4a129 /hosts/adam/wooting.nix
parent3bb78df81f840bc542140129c488050628b40881 (diff)
feat: rename hosts
Diffstat (limited to 'hosts/adam/wooting.nix')
-rw-r--r--hosts/adam/wooting.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/hosts/adam/wooting.nix b/hosts/adam/wooting.nix
new file mode 100644
index 0000000..742ef29
--- /dev/null
+++ b/hosts/adam/wooting.nix
@@ -0,0 +1,27 @@
+{ pkgs, ... }:
+
+{
+ 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
+ ];
+}