ma hw/switch: add more options for connecting to switch

This commit is contained in:
makefu 2020-09-16 22:29:55 +02:00
parent 1af471af1e
commit ab0c5651a6
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -2,9 +2,11 @@
{
users.extraUsers.${config.krebs.build.user.name}.extraGroups = [ "plugdev" ];
users.users.makefu.extraGroups = [ "plugdev" ];
users.groups.plugdev = {};
services.udev.extraRules = ''
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="16c0", ATTR{idProduct}=="27e2", SYMLINK+="switch-%k", MODE="0664", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="057e", ATTR{idProduct}=="3000", SYMLINK+="switch-%k", MODE="0664", GROUP="plugdev"
'';
}