Hi Everyone
I am new to Nixos, below settings work for me, probably there is a more beautiful way
All the programs are in the store, but there was a little udev setting up, otherwise the device rights were not usable, and also a kernel module blacklisting otherwise the rtl-sdr stick was a dvbt device
As program to listen to radio I use gqrx
I set it up globally in /etc/nixos/configuration.nix
So add somewhere in that file, these lines:
boot.kernelParams = [ "modprobe.blacklist=dvb_usb_rtl28xxu" ]; # blacklist this module
services.udev.packages = [ pkgs.rtl-sdr ]; # (there might be other packages that require udev here too)
And add these packages in the list where your packages already are:
libusb rtl-sdr gqrx
e.g.:
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget
vim
libusb
pkgs.rtl-sdr
gqrx
];
Save and quit your editing, then rebuild your system as usual:
sudo nixos-rebuild switch
Then reboot for blacklisting the dvbt module, enter your system, plug in the rtl-sdr usb stick, start gqrx, it should find the rtl-sdr stick and be able to work with it!
Thanks (for beautiful Nixos)!