{ zentralwerk, config, pkgs, ... }: { microvm.mem = 4096; c3d2 = { isInHq = false; hq.statistics.enable = true; }; system.stateVersion = "22.05"; networking.hostName = "sdrweb"; # http https networking.firewall.allowedTCPPorts = [ 80 443 ]; services.nginx = { enable = true; virtualHosts."sdr.hq.c3d2.de" = { default = true; forceSSL = true; enableACME = true; locations."/" = { proxyPass = "http://localhost:8073"; proxyWebsockets = true; }; }; virtualHosts."adsb.hq.c3d2.de" = { forceSSL = true; enableACME = true; root = pkgs.runCommand "adsb-map" {} '' mkdir $out cp ${./adsb.html} $out/index.html cp ${./airplane.svg} $out/airplane.svg ''; extraConfig = '' index index.html; charset utf-8; ''; locations."/data.json" = { proxyPass = "http://${config.c3d2.hosts.radiobert.ip4}:8080/data.json"; }; }; }; services.openwebrx.enable = true; services.collectd.plugins = { curl_json = '' Plugin "openwebrx_decodes" Type "counter" Type "counter" Type "counter" Type "counter" Type "gauge" Type "gauge" Type "gauge" Type "gauge" ''; }; services.heliwatch = { enable = true; inherit (pkgs.mucbot) jid; inherit (pkgs.mucbot) password; muc = "luftraum@chat.c3d2.de/Hubschraubereinsatz"; }; # noXlibs breaks cairo: environment.noXlibs = false; }