about summary refs log tree commit diff
path: root/system
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-05-26T14·29-0400
committerGriffin Smith <root@gws.fyi>2020-05-26T14·46-0400
commit0e9a2388bf9e1a3258b19ebd00da0a804875ad10 (patch)
tree2dd6bef5f79312efae6bfcdf40af7ed6592ee9f9 /system
parent82c0404c4fccc163fab4efa11f0fb8986de8858d (diff)
Start of an RTL-SDR module
Diffstat (limited to 'system')
-rw-r--r--system/modules/common.nix1
-rw-r--r--system/modules/rtlsdr.nix17
2 files changed, 18 insertions, 0 deletions
diff --git a/system/modules/common.nix b/system/modules/common.nix
index 230652c3da7b..c505d0d5dcd7 100644
--- a/system/modules/common.nix
+++ b/system/modules/common.nix
@@ -7,6 +7,7 @@
       ./fonts.nix
       ./sound.nix
       ./kernel.nix
+      ./rtlsdr.nix
       /home/grfn/code/urb/urbos/system
     ];
 
diff --git a/system/modules/rtlsdr.nix b/system/modules/rtlsdr.nix
new file mode 100644
index 000000000000..ce58ebb0dcda
--- /dev/null
+++ b/system/modules/rtlsdr.nix
@@ -0,0 +1,17 @@
+{ config, lib, pkgs, ... }:
+
+{
+
+  environment.systemPackages = with pkgs; [
+    rtl-sdr
+  ];
+
+  services.udev.packages = with pkgs; [
+    rtl-sdr
+  ];
+
+  # blacklist for rtl-sdr
+  boot.blacklistedKernelModules = [
+    "dvb_usb_rtl28xxu"
+  ];
+}