From 12fe9620e97afb99a723a02b690d61b8d355987d Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 4 Aug 2022 23:25:37 +0200 Subject: [PATCH] cluster/services/wireguard: expose meshNet in vars --- cluster/services/wireguard/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cluster/services/wireguard/default.nix b/cluster/services/wireguard/default.nix index c3c78ab..cae81a8 100644 --- a/cluster/services/wireguard/default.nix +++ b/cluster/services/wireguard/default.nix @@ -12,9 +12,12 @@ let getExtAddr = host: host.interfaces.primary.addrPublic or host.interfaces.primary.addr; in { - vars.mesh = { - VEGAS = config.links.mesh-node-VEGAS.extra; - prophet = config.links.mesh-node-prophet.extra; + vars = { + mesh = { + VEGAS = config.links.mesh-node-VEGAS.extra; + prophet = config.links.mesh-node-prophet.extra; + }; + inherit meshNet; }; links = { mesh-node-VEGAS = {