diff --git a/nixos/boxes/foureighty/default.nix b/nixos/boxes/foureighty/default.nix index 593e439b..9ade0a8b 100644 --- a/nixos/boxes/foureighty/default.nix +++ b/nixos/boxes/foureighty/default.nix @@ -14,6 +14,7 @@ ../../libvirt.nix ../../mercurial ../../vim + ../../sdr.nix ]; fileSystems."/" = { options = [ "compress=zstd" ]; }; diff --git a/nixos/sdr.nix b/nixos/sdr.nix new file mode 100644 index 00000000..9c9d52bd --- /dev/null +++ b/nixos/sdr.nix @@ -0,0 +1,21 @@ +{ config, pkgs, inputs, ... }: + +{ + home-manager.users.cyryl = { ... }: { + imports = [ ]; + home.packages = + with inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux"; + with gnuradio3_8Packages; + [ gnuradio osmosdr gqrx audacity rtl-sdr inspectrum ] ++ + + (with pkgs; [ ]); + }; + + services.udev = { + packages = [ pkgs.rtl-sdr ]; + extraRules = ""; + }; + + # dont load DVB-T modules automatically + boot.blacklistedKernelModules = [ "dvb_usb_rtl28xxu" ]; +}