aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/sdr.nix
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-04-13 15:52:28 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-04-13 15:52:28 -0700
commited68e6541c89e65ee654c1eb9ed9dce64ac1613e (patch)
tree5c0c3f2019dcec34d0050afee8f5c8f60b5d4473 /hosts/common/optional/sdr.nix
parent8f4ff719d0c17d294e7917eef418a4b13f7466b3 (diff)
downloadnix-ed68e6541c89e65ee654c1eb9ed9dce64ac1613e.tar
nix-ed68e6541c89e65ee654c1eb9ed9dce64ac1613e.tar.gz
nix-ed68e6541c89e65ee654c1eb9ed9dce64ac1613e.tar.bz2
nix-ed68e6541c89e65ee654c1eb9ed9dce64ac1613e.tar.lz
nix-ed68e6541c89e65ee654c1eb9ed9dce64ac1613e.tar.xz
nix-ed68e6541c89e65ee654c1eb9ed9dce64ac1613e.tar.zst
nix-ed68e6541c89e65ee654c1eb9ed9dce64ac1613e.zip
Update ginaz to be heavily modular
Diffstat (limited to 'hosts/common/optional/sdr.nix')
-rw-r--r--hosts/common/optional/sdr.nix16
1 files changed, 16 insertions, 0 deletions
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"
+ '';
+}