Start of an RTL-SDR module
This commit is contained in:
parent
82c0404c4f
commit
0e9a2388bf
4 changed files with 40 additions and 0 deletions
|
@ -7,6 +7,7 @@ in {
|
|||
|
||||
../modules/common.nix
|
||||
../modules/games.nix
|
||||
../modules/rtlsdr.nix
|
||||
];
|
||||
|
||||
system.machine = {
|
||||
|
|
21
home/modules/rtlsdr.nix
Normal file
21
home/modules/rtlsdr.nix
Normal 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
|
||||
];
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
./fonts.nix
|
||||
./sound.nix
|
||||
./kernel.nix
|
||||
./rtlsdr.nix
|
||||
/home/grfn/code/urb/urbos/system
|
||||
];
|
||||
|
||||
|
|
17
system/modules/rtlsdr.nix
Normal file
17
system/modules/rtlsdr.nix
Normal 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"
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue