stockholm/makefu/2configs/hw/switch.nix

13 lines
470 B
Nix
Raw Normal View History

2018-10-21 21:10:56 +00:00
{ config, lib, pkgs, ... }:
{
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"
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
'';
}