aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-05-04 13:39:33 +0200
committerAlex Auvolat <alex@adnab.me>2023-05-04 13:39:33 +0200
commit6c07a429781d4a26a546e3f3049b41e0b968b033 (patch)
tree14a6cbe973232ed2b959625f4787fc421d55c1d7
parent607add3161f9a465fc061cfd3a5434aa4dbd4796 (diff)
downloadnixcfg-6c07a429781d4a26a546e3f3049b41e0b968b033.tar.gz
nixcfg-6c07a429781d4a26a546e3f3049b41e0b968b033.zip
different wgautomesh gossip ports for prod and staging
-rw-r--r--cluster/staging/cluster.nix2
-rw-r--r--nix/deuxfleurs.nix7
2 files changed, 8 insertions, 1 deletions
diff --git a/cluster/staging/cluster.nix b/cluster/staging/cluster.nix
index 2fec94c..362724b 100644
--- a/cluster/staging/cluster.nix
+++ b/cluster/staging/cluster.nix
@@ -38,6 +38,8 @@
endpoint = "bitfrost.fiber.shirokumo.net:33734";
};
};
+
+ deuxfleurs.wgautomeshPort = 1667;
services.wgautomesh.logLevel = "debug";
# Bootstrap IPs for Consul cluster,
diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix
index 0f5c185..9ef2b2a 100644
--- a/nix/deuxfleurs.nix
+++ b/nix/deuxfleurs.nix
@@ -117,6 +117,11 @@ in
type = port;
default = 33799;
};
+ wgautomeshPort = mkOption {
+ description = "Gossip port for wgautomesh";
+ type = port;
+ default = 1666;
+ };
};
imports = [
@@ -245,7 +250,7 @@ in
services.wgautomesh = {
enable = true;
interface = "wg0";
- gossipPort = 1666;
+ gossipPort = cfg.wgautomeshPort;
gossipSecretFile = "/var/lib/wgautomesh/gossip_secret";
persistFile = "/var/lib/wgautomesh/state";
upnpForwardPublicPort =