bluetooth passhtrough for wiimotes

This commit is contained in:
Danilo Reyes 2025-03-12 20:20:32 -06:00
parent 17bce18693
commit d0ffbf48d7
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,6 @@
{ {
modulesPath, modulesPath,
config,
pkgs, pkgs,
inputs, inputs,
lib, lib,
@ -10,10 +11,15 @@
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
inputs.ucodenix.nixosModules.default inputs.ucodenix.nixosModules.default
]; ];
services.ucodenix = { services = {
udev.extraRules = lib.mkIf config.my.apps.gaming.enable ''
SUBSYSTEM=="usb", ATTRS{idVendor}=="0cf3", ATTRS{idProduct}=="3005", TAG+="uaccess"
'';
ucodenix = {
enable = true; enable = true;
cpuModelId = "00A50F00"; cpuModelId = "00A50F00";
}; };
};
hardware = { hardware = {
bluetooth = { bluetooth = {
enable = true; enable = true;

View File

@ -82,6 +82,8 @@ in
"docker" "docker"
"libvirt" "libvirt"
"rslsync" "rslsync"
"plugdev"
"bluetooth"
]; ];
openssh.authorizedKeys.keyFiles = [ openssh.authorizedKeys.keyFiles = [
./secrets/ssh/ed25519_deacero.pub ./secrets/ssh/ed25519_deacero.pub