summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/hw/switch.nix
blob: 79de7ffb1d8677c1182937408fb5f0db6bf5b96d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, lib, pkgs, ... }:

{

  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"
  '';
}