2018-10-21 21:10:56 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2020-09-16 20:29:55 +00:00
|
|
|
users.users.makefu.extraGroups = [ "plugdev" ];
|
|
|
|
users.groups.plugdev = {};
|
2018-10-21 21:10:56 +00:00
|
|
|
services.udev.extraRules = ''
|
|
|
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"
|
2020-09-16 20:29:55 +00:00
|
|
|
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"
|
2018-10-21 21:10:56 +00:00
|
|
|
'';
|
|
|
|
}
|