From 9f96921ede1131fe18556c239dd7d2215b0b1137 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 11 Jan 2026 21:30:05 +0100 Subject: 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. --- krebs/3modules/tinc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 config.krebs.tinc.retiolum.hostsPackage. -- cgit v1.3.1