summaryrefslogtreecommitdiff
path: root/modules/yggdrasil-wg
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-12-16 09:52:43 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-12-16 09:52:43 +0100
commit6306587d51b692562caa70ab8caa8161d64caa9b (patch)
tree48b7c7af90410b3fb33c04896686c482f920eefa /modules/yggdrasil-wg
parentbc451e52b92b66647e318049051abb93233e874d (diff)
downloadnixos-6306587d51b692562caa70ab8caa8161d64caa9b.tar
nixos-6306587d51b692562caa70ab8caa8161d64caa9b.tar.gz
nixos-6306587d51b692562caa70ab8caa8161d64caa9b.tar.bz2
nixos-6306587d51b692562caa70ab8caa8161d64caa9b.tar.xz
nixos-6306587d51b692562caa70ab8caa8161d64caa9b.zip
yggdrasil-wg: ...
Diffstat (limited to 'modules/yggdrasil-wg')
-rw-r--r--modules/yggdrasil-wg/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/yggdrasil-wg/default.nix b/modules/yggdrasil-wg/default.nix
index d7097e1d..4b93da57 100644
--- a/modules/yggdrasil-wg/default.nix
+++ b/modules/yggdrasil-wg/default.nix
@@ -203,7 +203,7 @@ in {
203 Destination = "${batSubnet}::/${toString batSubnetLength}"; 203 Destination = "${batSubnet}::/${toString batSubnetLength}";
204 }; 204 };
205 } 205 }
206 ] ++ (concatMap (router: map (Gateway: { routeConfig = { Destination = "::/0"; Metric = 1; inherit Gateway; }; }) batHostIPs.${router}) routers); 206 ] ++ (concatMap (router: map (rAddr: { routeConfig = { Destination = "::/0"; Metric = 1; Gateway = stripSubnet rAddr; }; }) batHostIPs.${router}) routers);
207 linkConfig = { 207 linkConfig = {
208 MACAddress = "${batHostMACs.${hostName}}"; 208 MACAddress = "${batHostMACs.${hostName}}";
209 RequiredForOnline = false; 209 RequiredForOnline = false;