From ba58e54ee96d0280c154d2617aa59a9e2ae4ef58 Mon Sep 17 00:00:00 2001 From: Danylo Hlynskyi Date: Thu, 10 Oct 2019 11:28:39 +0200 Subject: [PATCH] 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 --- nixos-infect | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos-infect b/nixos-infect index 091412c..8430461 100755 --- a/nixos-infect +++ b/nixos-infect @@ -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 };