amke sure sdr udev groups match

This commit is contained in:
Cyryl Płotnicki 2023-03-26 11:16:38 +01:00
parent 6e5955802a
commit 52772e8b12

View file

@ -11,9 +11,14 @@
(with pkgs; [ ]); (with pkgs; [ ]);
}; };
users.extraUsers.cyryl.extraGroups = [ "plugdev" ];
users.groups = { "plugdev" = { }; };
services.udev = { services.udev = {
packages = [ pkgs.rtl-sdr ]; packages = [ pkgs.rtl-sdr ];
extraRules = ""; extraRules = ''
# RTL2832U OEM vid/pid, e.g. ezcap EzTV668 (E4000), Newsky TV28T (E4000/R820T) etc.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", ENV{ID_SOFTWARE_RADIO}="1", MODE="0660", GROUP="plugdev"
'';
}; };
# dont load DVB-T modules automatically # dont load DVB-T modules automatically