From ed68e6541c89e65ee654c1eb9ed9dce64ac1613e Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sat, 13 Apr 2024 15:52:28 -0700 Subject: Update ginaz to be heavily modular --- hosts/common/optional/sdr.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hosts/common/optional/sdr.nix (limited to 'hosts/common/optional/sdr.nix') diff --git a/hosts/common/optional/sdr.nix b/hosts/common/optional/sdr.nix new file mode 100644 index 0000000..8e1e5d2 --- /dev/null +++ b/hosts/common/optional/sdr.nix @@ -0,0 +1,16 @@ +{ pkgs, ... }: +{ + environment.systemPackages = builtins.attrValues { + inherit (pkgs) + fldigi + sdrconnect; + }; + + services.udev.extraRules = '' + SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="2500",MODE:="0666" + SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="3000",MODE:="0666" + SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="3010",MODE:="0666" + SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="3020",MODE:="0666" + SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="3030",MODE:="0666" + ''; +} -- cgit v1.2.3