ma hw/switch: init udev rules

This commit is contained in:
makefu 2018-10-21 23:10:56 +02:00
parent db8542bef0
commit 797606e5db

10
2configs/hw/switch.nix Normal file
View file

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