summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-04-12 20:23:04 +0200
committerGitHub <noreply@github.com>2021-04-12 20:23:04 +0200
commit311ceed827f531f88f46222920cd1ebb2c101f73 (patch)
tree1e1dd77b7a32bdc3d3f50b58aebeaaa4f044ca53 /nixos/modules/hardware
parent28687490bb2db3a2eba9209cd182a15633398d17 (diff)
parent6ddfee9a6dca186d20ed986a7ac9a3c54c06ae78 (diff)
downloadnixpkgs-311ceed827f531f88f46222920cd1ebb2c101f73.tar
nixpkgs-311ceed827f531f88f46222920cd1ebb2c101f73.tar.gz
nixpkgs-311ceed827f531f88f46222920cd1ebb2c101f73.tar.bz2
nixpkgs-311ceed827f531f88f46222920cd1ebb2c101f73.tar.lz
nixpkgs-311ceed827f531f88f46222920cd1ebb2c101f73.tar.xz
nixpkgs-311ceed827f531f88f46222920cd1ebb2c101f73.tar.zst
nixpkgs-311ceed827f531f88f46222920cd1ebb2c101f73.zip
Merge pull request #117551 from TredwellGit/nixos/rtl-sdr
nixos/rtl-sdr: blacklist DVB kernel modules
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/rtl-sdr.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/nixos/modules/hardware/rtl-sdr.nix b/nixos/modules/hardware/rtl-sdr.nix
index 77c8cb59a3d..9605c7967f6 100644
--- a/nixos/modules/hardware/rtl-sdr.nix
+++ b/nixos/modules/hardware/rtl-sdr.nix
@@ -6,14 +6,13 @@ let
 in {
   options.hardware.rtl-sdr = {
     enable = lib.mkEnableOption ''
-      Enables rtl-sdr udev rules and ensures 'plugdev' group exists.
-      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.
+      Enables rtl-sdr udev rules, ensures 'plugdev' group exists, and blacklists DVB kernel modules.
+      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.
     '';
   };
 
   config = lib.mkIf cfg.enable {
+    boot.blacklistedKernelModules = [ "dvb_usb_rtl28xxu" "e4000" "rtl2832" ];
     services.udev.packages = [ pkgs.rtl-sdr ];
     users.groups.plugdev = {};
   };