From d9b77672a1a04775500ca3e119f4797d2e576453 Mon Sep 17 00:00:00 2001 From: notohh Date: Wed, 18 Oct 2023 02:50:11 -0400 Subject: [PATCH] tsuki: add wooting udev rules + pipewire conf --- hosts/tsuki/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hosts/tsuki/default.nix b/hosts/tsuki/default.nix index 65d04a5..ecbae0d 100755 --- a/hosts/tsuki/default.nix +++ b/hosts/tsuki/default.nix @@ -41,6 +41,29 @@ layout = "us"; xkbVariant = ""; }; + udev = { + extraRules = '' + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", TAG+="uaccess" + SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", TAG+="uaccess" + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402", TAG+="uaccess" + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff02", TAG+="uaccess" + SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff02", TAG+="uaccess" + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2403", TAG+="uaccess" + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", TAG+="uaccess" + SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", TAG+="uaccess" + ''; + }; + }; + + environment.etc = { + "pipewire/pipewire.conf.d/92-low-latency.conf".text = '' + context.properties = { + default.clock.rate = 48000 + default.clock.quantum = 1024 + default.clock.min-quantum = 16 + default.clock.max-quantum = 2048 + } + ''; }; services.pcscd.enable = true;