Make routes config explicit. (#39)

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-11 10:32:54 +03:00 committed by Eric Litak
parent d28f8f9679
commit 38fb735eab
1 changed files with 2 additions and 0 deletions

View File

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