Make routes config explicit.

This helps Hetzner Cloud, which doesn't populate routes by
default and thus network doesn't work.

Fixes https://github.com/elitak/nixos-infect/issues/25
This commit is contained in:
Danylo Hlynskyi 2019-10-10 11:28:39 +02:00
parent d28f8f9679
commit ba58e54ee9

View file

@ -105,6 +105,8 @@ EOF
ipv6.addresses = [$(for a in "${eth0_ip6s[@]}"; do echo -n " ipv6.addresses = [$(for a in "${eth0_ip6s[@]}"; do echo -n "
$a"; done) $a"; done)
]; ];
ipv4.routes = [ { address = "${gateway}"; prefixLength = 32; } ];
ipv6.routes = [ { address = "${gateway6}"; prefixLength = 32; } ];
}; };
$interfaces1 $interfaces1
}; };