From b0991b544fc7a4cdba9f817e397e3e8f39312482 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Fri, 10 May 2019 23:17:33 +0200 Subject: [PATCH] fix routing --- configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 5bd8acd..5ebd016 100644 --- a/configuration.nix +++ b/configuration.nix @@ -20,10 +20,15 @@ boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only networking = { - hostName = "mail2"; # Define your hostname. + hostName = "mail2"; + domain = "hamburg.freifunk.net"; dhcpcd.enable = false; interfaces.ens3 = { ipv4.addresses = [ { address = "193.96.224.229"; prefixLength = 29; } ]; + ipv4.routes = [ + { address = "100.64.112.248"; prefixLength = 29; } + { address = "10.112.0.0"; prefixLength = 16; via = "100.64.112.251"; } + ]; ipv6.addresses = [ { address = "2a03:2267:ffff:c00::e"; prefixLength = 64; } ]; }; defaultGateway = { address = "193.96.224.225"; };