2020-09-10 15:12:31 +02:00
|
|
|
{
|
2021-08-05 13:23:07 +02:00
|
|
|
services.udev.extraRules = /* udevrules */ ''
|
2020-09-10 15:12:31 +02:00
|
|
|
# ST-Link
|
|
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
|
|
|
|
MODE:="0666"
|
2021-10-04 16:33:40 +02:00
|
|
|
|
|
|
|
# Steam emulated controller
|
|
|
|
KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"
|
2021-12-19 11:25:51 +01:00
|
|
|
|
|
|
|
# Nintendo Switch Pro Controller over USB hidraw
|
|
|
|
KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0660", GROUP="users", TAG+="uaccess"
|
|
|
|
|
|
|
|
# Nintendo Switch Pro Controller over bluetooth hidraw
|
|
|
|
KERNEL=="hidraw*", KERNELS=="*057E:2009*", MODE="0660", GROUP="users", TAG+="uaccess"
|
2020-09-10 15:12:31 +02:00
|
|
|
'';
|
2021-10-04 16:33:40 +02:00
|
|
|
|
|
|
|
boot.kernelModules = [ "uinput" ];
|
2020-09-10 15:12:31 +02:00
|
|
|
}
|