summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-10-21 23:10:56 +0200
committermakefu <github@syntax-fehler.de>2018-10-21 23:10:56 +0200
commit56945ee3f2e16719943b8429d85ae3d61d8ee61f (patch)
tree08570f11d73d1cc358432916a0a865a2aa901d64
parent29752c0970c2964a7b1a5434fb7a583dd302ef43 (diff)
ma hw/switch: init udev rules
-rw-r--r--makefu/2configs/hw/switch.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/makefu/2configs/hw/switch.nix b/makefu/2configs/hw/switch.nix
new file mode 100644
index 000000000..d46e8cf3f
--- /dev/null
+++ b/makefu/2configs/hw/switch.nix
@@ -0,0 +1,10 @@
+{ config, lib, pkgs, ... }:
+
+{
+
+ users.extraUsers.${config.krebs.build.user.name}.extraGroups = [ "plugdev" ];
+
+ services.udev.extraRules = ''
+ SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"
+ '';
+}