summaryrefslogtreecommitdiffstats
path: root/makefu/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-09-16 22:29:55 +0200
committermakefu <github@syntax-fehler.de>2020-09-16 22:29:55 +0200
commitab0c5651a638a897d6623d32900126b5b5cfdd4a (patch)
tree0526008d149178af958eb62544e781e8b29bdcab /makefu/2configs
parent1af471af1eec077bc21ff0c96679362f055beaaa (diff)
ma hw/switch: add more options for connecting to switch
Diffstat (limited to 'makefu/2configs')
-rw-r--r--makefu/2configs/hw/switch.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/makefu/2configs/hw/switch.nix b/makefu/2configs/hw/switch.nix
index d46e8cf3f..79de7ffb1 100644
--- a/makefu/2configs/hw/switch.nix
+++ b/makefu/2configs/hw/switch.nix
@@ -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"
'';
}