radiobert: switch from openwebrx to soapysdr-server

This commit is contained in:
Astro 2021-10-07 22:06:28 +02:00
parent ef0713999c
commit e4b5ae2897
1 changed files with 26 additions and 2 deletions

View File

@ -76,11 +76,35 @@
prefixLength = 26;
}];
defaultGateway = "172.20.73.1";
firewall.allowedTCPPorts = [ 22 80 443 ];
firewall.allowedTCPPorts = [
# SSH
22
# Web
80 443
# SoapySDRServer
55132
];
firewall.enable = false;
nameservers = [ "172.20.73.8" "9.9.9.9" ];
};
services.openwebrx.enable = true;
# services.openwebrx.enable = true;
users.users.soapysdr = {
isSystemUser = true;
group = "soapysdr";
};
users.groups.soapysdr = {};
systemd.services.soapysdr-server = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.soapysdr-with-plugins}/bin/SoapySDRServer --bind";
User = "soapysdr";
Group = "soapysdr";
ProtectSystem = "full";
ProtectHome = true;
};
};
services.collectd.plugins = {
curl_json = ''