From c306f4c3007d5600cbf69b1ba90ec1a736a196f2 Mon Sep 17 00:00:00 2001 From: jimzah Date: Mon, 5 Aug 2024 20:46:30 +0100 Subject: [PATCH] Direwolf config --- aprs.nix | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/aprs.nix b/aprs.nix index dfcb1bf..725efcf 100644 --- a/aprs.nix +++ b/aprs.nix @@ -1,4 +1,29 @@ -{ config, lib, pkgs, ... }: { +{ config, lib, pkgs, ... }: +let + direwolfConfig = pkgs.writeText "direwolf-config" '' + ADEVICE plughw:1,0 + ACHANNELS 1 + CHANNEL 0 + MYCALL G5BSD-1 + MODEM 1200 + PTT CM108 3 + DCD GPIO 24 + AGWPORT 8000 + KISSPORT 8001 + PBEACON delay=1 every=30 overlay=S symbol="digi" lat=51^13.07N long=000^8.69W power=2 height=12 gain=4 comment="Redhill Aerodrome." via=WIDE1-1,WIDE2-1 + OBEACON OBJNAME="G5BSD/R" delay=1 every=30 overlay=S symbol="repeater" lat=51^13.07N long=000^8.00W power=8 height=12 gain=4 FREQ="430.975" TONE="82.5" OFFSET="+7.6" comment="UHF Repeater" via=WIDE1-1,WIDE2-1 +DIGIPEAT 0 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE + IGSERVER euro.aprs2.net + IGLOGIN G5BSD 12932 + #PBEACON sendto=IG delay=0:30 every=60:00 symbol="igate" overlay=R lat=42^37.14N long=071^20.83W + #PBEACON sendto=IG delay=0:30 every=60:00 symbol="igate" overlay=T lat=42^37.14N long=071^20.83W + #IGTXVIA 0 WIDE1-1 + #IGFILTER m/50 + #FILTER IG 0 t/m + #FILTER IG 1 t/wn + IGTXLIMIT 6 10 + ''; +in{ systemd.services.direwolf = { enable = true; description = "direwolf digipeater"; @@ -7,7 +32,7 @@ serviceConfig = { #User = ""; #Group = ""; - ExecStart = "${pkgs.direwolf}/bin/direwolf -t 0 -c /home/jim/direwolf.conf"; + ExecStart = "${pkgs.direwolf}/bin/direwolf -t 0 -c ${direwolfConfig}"; StandardOutput = "syslog"; StandardError = "syslog"; SyslogIdentifier = "direwolf";