Files
homelab/services/dev/turtle-beach-re.nix
darmanandClaude Opus 5.5 7756e8e6fb fix(flake): repos moved to /mnt/hdd_01/dev/repos
tbctl and nexusmods-app pointed at the old /mnt/hdd_01/data/Dev/repos
path, which no longer exists. Relocked at the same revisions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:02:46 +01:00

24 lines
887 B
Nix

{ pkgs, ... }:
# Host permissions for reverse engineering Turtle Beach Swarm II devices
# (/mnt/hdd_01/dev/repos/openbeach-re/protocol/nixos/turtle-beach-re.nix).
{
# USB traffic capture (/dev/usbmonN), readable by the 'wireshark' group
boot.kernelModules = [ "usbmon" ];
programs.wireshark = {
enable = true;
usbmon.enable = true;
};
users.users.darman.extraGroups = [ "wireshark" ];
# Turtle Beach / ROCCAT devices (vendor 10f5): give the logged-in user access to
# the raw USB device (QEMU passthrough) and hidraw nodes (our own tools).
# Must sort before 73-seat-late.rules for uaccess to apply, hence not extraRules.
services.udev.packages = [
(pkgs.writeTextDir "lib/udev/rules.d/70-turtle-beach.rules" ''
SUBSYSTEM=="usb", ATTR{idVendor}=="10f5", TAG+="uaccess"
KERNEL=="hidraw*", ATTRS{idVendor}=="10f5", TAG+="uaccess"
'')
];
}