diff options
| author | makefu <github@syntax-fehler.de> | 2026-01-11 22:18:30 +0100 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2026-01-11 22:18:30 +0100 |
| commit | dce904dd1a33c8a2ca9f56b0f33f85f493eda499 (patch) | |
| tree | a6cfc9d606fbfcb61101498f3ca0bf5cd76bc2c1 /krebs/3modules/tinc.nix | |
| parent | f02d2c528266e51b56249a9050a68c06dd0fd15f (diff) | |
| parent | 2772413f6c0f8466d07775f40b48447ac8a0501b (diff) | |
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'krebs/3modules/tinc.nix')
| -rw-r--r-- | krebs/3modules/tinc.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix index d73d5ca61..02b3eeb9d 100644 --- a/krebs/3modules/tinc.nix +++ b/krebs/3modules/tinc.nix @@ -1,5 +1,5 @@ { config, pkgs, lib, ... }: -with import ../../lib/pure.nix { inherit lib; }; { +with lib.slib or (import ../../lib/pure.nix { inherit lib; }); { options.krebs.tinc = mkOption { default = {}; description = '' @@ -91,7 +91,7 @@ with 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>. |
