nixbld: add IPv6 tunnel

This commit is contained in:
Sebastien Bourdeauducq 2019-09-18 12:38:35 +08:00
parent 9ea3e2e47b
commit f531f0c0d7
1 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,7 @@ let
netifWan = "enp0s31f6";
netifLan = "enp3s0";
netifWifi = "wlp4s0";
netifSit = "henet0";
hydraWwwOutputs = "/var/www/hydra-outputs";
in
{
@ -48,6 +49,16 @@ in
externalInterface = netifWan;
internalInterfaces = [ netifLan netifWifi ];
};
sits."${netifSit}" = {
dev = netifWan;
remote = "216.218.221.6";
local = "42.200.147.171";
ttl = 255;
};
interfaces."${netifSit}".ipv6 = {
addresses = [{ address = "2001:470:18:629::2"; prefixLength = 64; }];
routes = [{ address = "::"; prefixLength = 0; }];
};
};
services.hostapd = {