summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2026-01-11 21:30:05 +0100
committerlassulus <git@lassul.us>2026-01-11 21:30:05 +0100
commit9f96921ede1131fe18556c239dd7d2215b0b1137 (patch)
treeea51219e759039367f7981e2b9b292f7ec61e6f4
parent606b0ba6d7c6d8f782a4e2b2f4fe26bec909de7c (diff)
tinc: filter hosts without valid tinc config
Hosts that have a network entry but no tinc.config (like 'ne' which only has aliases) should be excluded from the hosts package generation.
-rw-r--r--krebs/3modules/tinc.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix
index debbb184b..02b3eeb9d 100644
--- a/krebs/3modules/tinc.nix
+++ b/krebs/3modules/tinc.nix
@@ -91,7 +91,7 @@ with lib.slib or (import ../../lib/pure.nix { inherit lib; }); {
hosts = mkOption {
type = with types; attrsOf host;
default =
- filterAttrs (_: h: hasAttr tinc.config.netname h.nets) config.krebs.hosts;
+ filterAttrs (_: h: hasAttr tinc.config.netname h.nets && h.nets.${tinc.config.netname}.tinc.config or null != null) config.krebs.hosts;
defaultText = "‹all-hosts-of-‹netname››";
description = ''
Hosts to generate <literal>config.krebs.tinc.retiolum.hostsPackage</literal>.