Skip to content

Commit

Permalink
move more traffic-stop-box config to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Nov 25, 2023
1 parent 2b3d6cb commit 61cc624
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/traffic-stop-box/radio-config.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{ config, lib, self, registry, ... }:
let

file = with config.deployment-TLMS; "${self}/hosts/traffic-stop-box/${toString systemNumber}/config_${toString systemNumber}.json";
in
{ config, lib, registry, ... }:
{
TLMS.gnuradio = {
enable = true;
Expand All @@ -11,7 +7,7 @@ in
TLMS.telegramDecoder = {
enable = true;
server = [ "http://10.13.37.1:8080" "http://10.13.37.5:8080" "http://10.13.37.7:8080" ];
configFile = file;
configFile = registry.telegramDecoderConfig;
authTokenFile = config.sops.secrets.telegram-decoder-token.path;
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions registry/traffic-stop-box/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
wgAddr4 = "10.13.37.100";
arch = "x86_64-linux";
monitoring = true;
telegramDecoderConfig = ./config_0.json;
};
# Zentralwerk
"1" = {
Expand All @@ -16,18 +17,21 @@
wgAddr4 = "10.13.37.101";
arch = "x86_64-linux";
monitoring = true;
telegramDecoderConfig = ./config_1.json;
};
"2" = {
wireguardPublicKey = "4TUQCToGNhjsCgV9elYE/91Vd/RvMgvMXtF/1Dzlvxo=";
hostName = "traffic-stop-box-2";
gnuradio = { frequency = 153850000; offset = 20000; device = ""; RF = 14; IF = 32; BB = 42; }; # chemnitz
wgAddr4 = "10.13.37.102";
telegramDecoderConfig = ./config_2.json;
};
"3" = {
wireguardPublicKey = "w3AT3EahW1sCK8ZsR7sDTcQj1McXYeWx7fnfQFA7i3o=";
hostName = "traffic-stop-box-3";
gnuradio = { frequency = 170795000; offset = 19400; device = ""; RF = 14; IF = 32; BB = 42; }; # dresden unused
wgAddr4 = "10.13.37.103";
telegramDecoderConfig = ./config_3.json;
};
# Wundstr. 9
"4" = {
Expand All @@ -37,19 +41,22 @@
wgAddr4 = "10.13.37.104";
arch = "x86_64-linux";
monitoring = true;
telegramDecoderConfig = ./config_4.json;
};
# number 5 is missing
"6" = {
wireguardPublicKey = "NuLDNmxuHHzDXJSIOPSoihEhLWjARRtavuQvWirNR2I=";
hostName = "traffic-stop-box-6";
gnuradio = { frequency = 150827500; offset = 19550; device = ""; RF = 14; IF = 32; BB = 42; }; # warpzone münster
wgAddr4 = "10.13.37.106";
telegramDecoderConfig = ./config_6.json;
};
"7" = {
wireguardPublicKey = "sMsdY7dSjlYeIFMqjkh4pJ/ftAYXlyRuxDGbdnGLpEQ=";
hostName = "traffic-stop-box-7";
gnuradio = { frequency = 150827500; offset = 19550; device = ""; RF = 14; IF = 32; BB = 42; }; # drehturm aachen
wgAddr4 = "10.13.37.107";
telegramDecoderConfig = ./config_7.json;
};
# Hannover Bredero Hochhaus City
"8" = {
Expand All @@ -59,6 +66,7 @@
wgAddr4 = "10.13.37.108";
arch = "aarch64-linux";
monitoring = false;
telegramDecoderConfig = ./config_8.json;
};
# Hannover Bredero Hochhaus Wider Area
"9" = {
Expand All @@ -68,11 +76,13 @@
wgAddr4 = "10.13.37.109";
arch = "aarch64-linux";
monitoring = false;
telegramDecoderConfig = ./config_9.json;
};
"10" = {
wireguardPublicKey = "dL9JGsBhaTOmXgGEH/N/GCHbQgVHEjBvIMaRtCsHBHw=";
hostName = "traffic-stop-box-10";
gnuradio = { frequency = 153850000; offset = 20000; device = ""; RF = 14; IF = 32; BB = 42; }; # CLT
wgAddr4 = "10.13.37.110";
telegramDecoderConfig = ./config_10.json;
};
}

0 comments on commit 61cc624

Please sign in to comment.