summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-01-27 17:20:53 +0100
committerlassulus <lassulus@lassul.us>2022-01-27 17:20:53 +0100
commit377ee283e3227ebf80b5340f5e0ad5274b20dfa0 (patch)
tree9e780f98c55ba4a49d5a2a868499340779106ec5 /lass
parentff7825816ff69340effb54de1a9ee8822b9baf9b (diff)
l retiolum: disable localdiscovery on supernodes
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/retiolum.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/lass/2configs/retiolum.nix b/lass/2configs/retiolum.nix
index 2ddfbcf8f..a305d3e18 100644
--- a/lass/2configs/retiolum.nix
+++ b/lass/2configs/retiolum.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
{
@@ -22,6 +22,9 @@
];
extraConfig = ''
StrictSubnets = yes
+ ${lib.optionalString (config.krebs.build.host.nets.retiolum.via != null) ''
+ LocalDiscovery = no
+ ''}
'';
};