diff options
| author | tv <tv@krebsco.de> | 2026-12-03 00:59:34 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-03 00:59:34 +0000 |
| commit | 7db14aaf5b8c66be49d7c4a8c239a37194b944ab (patch) | |
| tree | d1a503bb91f324c6ffaccf47977a1950898811fd /configs | |
| parent | 0173a4e2b0b31db7b42842a414dca5b2b15ebc2c (diff) | |
wiregrill: don't make the host its own peer
Diffstat (limited to 'configs')
| -rw-r--r-- | configs/wiregrill.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/wiregrill.nix b/configs/wiregrill.nix index 31fe5207..d9e407d1 100644 --- a/configs/wiregrill.nix +++ b/configs/wiregrill.nix @@ -40,7 +40,11 @@ in publicKey = lib.replaceStrings ["\n"] [""] host.nets.wiregrill.wireguard.pubkey; }) - (lib.filterAttrs (_: h: lib.hasAttr "wiregrill" h.nets) config.krebs.hosts); + (lib.filterAttrs + (name: host: + name != config.krebs.build.host.name && + lib.hasAttr "wiregrill" host.nets) + config.krebs.hosts); }; systemd.network.networks.wiregrill = { matchConfig.Name = "wiregrill"; |
