From 5f19f9d7838b02631f5f024a98473a52bc863d2f Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 25 Jun 2022 17:43:30 +0000 Subject: [PATCH] totoro: add gateway --- ops/nixos/totoro/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ops/nixos/totoro/default.nix b/ops/nixos/totoro/default.nix index b40ef93ba4..55ea6b6f21 100644 --- a/ops/nixos/totoro/default.nix +++ b/ops/nixos/totoro/default.nix @@ -97,10 +97,6 @@ in { { address = "192.168.1.40"; prefixLength = 24; } ]; }; - defaultGateway = { - address = "192.168.1.1"; - interface = "br-ext"; - }; interfaces.br-int = { ipv4.addresses = [{ address = "10.0.0.2"; prefixLength = 24; }]; @@ -144,6 +140,9 @@ in { networks."40-br-int" = { linkConfig.RequiredForOnline = "no"; }; + networks."40-br-ext" = { + gateway = [ "192.168.1.1" ]; + }; }; my.ip.tailscale = "100.122.86.11";