Start of an RTL-SDR module

This commit is contained in:
Griffin Smith 2020-05-26 10:29:39 -04:00
parent 82c0404c4f
commit 0e9a2388bf
4 changed files with 40 additions and 0 deletions

View file

@ -7,6 +7,7 @@ in {
../modules/common.nix ../modules/common.nix
../modules/games.nix ../modules/games.nix
../modules/rtlsdr.nix
]; ];
system.machine = { system.machine = {

21
home/modules/rtlsdr.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
let
nixpkgs-gnuradio = import (pkgs.fetchFromGitHub {
owner = "doronbehar";
repo = "nixpkgs";
rev = "712561aa5f10bfe6112a1726a912585612a70d1f";
sha256 = "04yqflbwjcfl9vlplphpj82csqqz9k6m3nj1ybhwgmsc4by7vivl";
}) {};
in
{
home.packages = with pkgs; [
rtl-sdr
nixpkgs-gnuradio.gnuradio
nixpkgs-gnuradio.gnuradio.plugins.osmosdr
nixpkgs-gnuradio.gqrx
];
}

View file

@ -7,6 +7,7 @@
./fonts.nix ./fonts.nix
./sound.nix ./sound.nix
./kernel.nix ./kernel.nix
./rtlsdr.nix
/home/grfn/code/urb/urbos/system /home/grfn/code/urb/urbos/system
]; ];

17
system/modules/rtlsdr.nix Normal file
View file

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