diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-10-09 10:20:15 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-10-09 10:20:15 +0200 |
commit | d515db79f20229cd1bdbb4365a89dc5b2842a5d5 (patch) | |
tree | ae172cc2774471cd76a30ef1d6fb9f9c315f9fe9 /modules/yggdrasil-wg/default.nix | |
parent | 99b8a19deab992d0d873ac901fbe101478c5a233 (diff) | |
download | nixos-d515db79f20229cd1bdbb4365a89dc5b2842a5d5.tar nixos-d515db79f20229cd1bdbb4365a89dc5b2842a5d5.tar.gz nixos-d515db79f20229cd1bdbb4365a89dc5b2842a5d5.tar.bz2 nixos-d515db79f20229cd1bdbb4365a89dc5b2842a5d5.tar.xz nixos-d515db79f20229cd1bdbb4365a89dc5b2842a5d5.zip |
sif: yggdrasil-wg
Diffstat (limited to 'modules/yggdrasil-wg/default.nix')
-rw-r--r-- | modules/yggdrasil-wg/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/yggdrasil-wg/default.nix b/modules/yggdrasil-wg/default.nix index 1e253dc1..1fd7092c 100644 --- a/modules/yggdrasil-wg/default.nix +++ b/modules/yggdrasil-wg/default.nix | |||
@@ -14,11 +14,18 @@ let | |||
14 | persistentKeepalive = 25; | 14 | persistentKeepalive = 25; |
15 | dynamicEndpointRefreshSeconds = 86400; | 15 | dynamicEndpointRefreshSeconds = 86400; |
16 | } | 16 | } |
17 | { from = "sif"; | ||
18 | to = "surtr"; | ||
19 | endpointHost = "surtr.yggdrasil.li"; | ||
20 | persistentKeepalive = 25; | ||
21 | dynamicEndpointRefreshSeconds = 86400; | ||
22 | } | ||
17 | ]; | 23 | ]; |
18 | hostLength = subnetLength + 16; | 24 | hostLength = subnetLength + 16; |
19 | hostIPs = { | 25 | hostIPs = { |
20 | surtr = ["${subnet}::/${toString hostLength}"]; | 26 | surtr = ["${subnet}::/${toString hostLength}"]; |
21 | vidhar = ["${subnet}:1::/${toString hostLength}"]; | 27 | vidhar = ["${subnet}:1::/${toString hostLength}"]; |
28 | sif = ["${subnet}:2::/${toString hostLength}"]; | ||
22 | }; | 29 | }; |
23 | 30 | ||
24 | mkPublicKeyPath = host: ./hosts + "/${host}.pub"; | 31 | mkPublicKeyPath = host: ./hosts + "/${host}.pub"; |