diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-16 10:39:04 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-16 10:39:04 +0100 |
commit | 560f5194be17c7dbf21ac67c71d42f1a9c4d96ef (patch) | |
tree | e5ea6c68489ab9def36719855485f9af4774c9f2 /modules/yggdrasil-wg/default.nix | |
parent | 2af0af77d26b5403cff5c1043c894c216052cc07 (diff) | |
download | nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.tar nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.tar.gz nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.tar.bz2 nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.tar.xz nixos-560f5194be17c7dbf21ac67c71d42f1a9c4d96ef.zip |
yggdrasil-wg: ...
Diffstat (limited to 'modules/yggdrasil-wg/default.nix')
-rw-r--r-- | modules/yggdrasil-wg/default.nix | 6 |
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); |