nixos/rtl-sdr: modernize
This commit is contained in:
parent
65e20490d0
commit
c8e664839b
@ -19,6 +19,7 @@ in
|
|||||||
This is a prerequisite to using devices supported by rtl-sdr without being root, since rtl-sdr USB descriptors will be owned by plugdev through udev.
|
This is a prerequisite to using devices supported by rtl-sdr without being root, since rtl-sdr USB descriptors will be owned by plugdev through udev.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
package = lib.mkPackageOption pkgs "rtl-sdr" { };
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@ -27,7 +28,8 @@ in
|
|||||||
"e4000"
|
"e4000"
|
||||||
"rtl2832"
|
"rtl2832"
|
||||||
];
|
];
|
||||||
services.udev.packages = [ pkgs.rtl-sdr ];
|
services.udev.packages = [ cfg.package ];
|
||||||
|
environment.systemPackages = [ cfg.package ];
|
||||||
users.groups.plugdev = { };
|
users.groups.plugdev = { };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user