summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-12-16 10:39:04 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-12-16 10:39:04 +0100
commit560f5194be17c7dbf21ac67c71d42f1a9c4d96ef (patch)
treee5ea6c68489ab9def36719855485f9af4774c9f2
parent2af0af77d26b5403cff5c1043c894c216052cc07 (diff)
downloadnixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.tar
nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.tar.gz
nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.tar.bz2
nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.tar.xz
nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.zip
yggdrasil-wg: ...
-rw-r--r--modules/yggdrasil-wg/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/yggdrasil-wg/default.nix b/modules/yggdrasil-wg/default.nix
index 6e77e4a1..a22a27ec 100644
--- a/modules/yggdrasil-wg/default.nix
+++ b/modules/yggdrasil-wg/default.nix
@@ -201,6 +201,12 @@ in {
201 routes = [ 201 routes = [
202 { routeConfig = { 202 { routeConfig = {
203 Destination = "${batSubnet}::/${toString batSubnetLength}"; 203 Destination = "${batSubnet}::/${toString batSubnetLength}";
204 Table = "yggdrasil";
205 };
206 }
207 { routeConfig = {
208 Destination = batHostIPs.${hostName};
209 Table = "yggdrasil";
204 }; 210 };
205 } 211 }
206 ] ++ (concatMap (router: map (rAddr: { routeConfig = { Destination = "::/0"; Gateway = stripSubnet rAddr; Table = "yggdrasil"; }; }) batHostIPs.${router}) routers); 212 ] ++ (concatMap (router: map (rAddr: { routeConfig = { Destination = "::/0"; Gateway = stripSubnet rAddr; Table = "yggdrasil"; }; }) batHostIPs.${router}) routers);