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 | 797606e5dba340c2f112283d63d3ec6e0018b928 (patch) | |
tree | b0ccecbb2a4952aa97864e7f55c34c4f0a1aa8b6 /2configs | |
parent | db8542bef08e64d0aa7a181406f7cfeb8ba9af77 (diff) |
ma hw/switch: init udev rules
Diffstat (limited to '2configs')
-rw-r--r-- | 2configs/hw/switch.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/2configs/hw/switch.nix b/2configs/hw/switch.nix new file mode 100644 index 000000000..d46e8cf3f --- /dev/null +++ b/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" + ''; +} |