diff options
author | makefu <github@syntax-fehler.de> | 2018-10-21 23:10:56 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-10-21 23:10:56 +0200 |
commit | 56945ee3f2e16719943b8429d85ae3d61d8ee61f (patch) | |
tree | 08570f11d73d1cc358432916a0a865a2aa901d64 /makefu/2configs/hw | |
parent | 29752c0970c2964a7b1a5434fb7a583dd302ef43 (diff) |
ma hw/switch: init udev rules
Diffstat (limited to 'makefu/2configs/hw')
-rw-r--r-- | makefu/2configs/hw/switch.nix | 10 |
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" + ''; +} |