From 0e89853f1b82ebd56866082fb52f5cec1c5831df Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sat, 25 May 2024 19:24:14 +0200 Subject: [PATCH] chore: add default route with metric for gustave --- machines/gustave/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/machines/gustave/default.nix b/machines/gustave/default.nix index e23d4b3..67511bb 100644 --- a/machines/gustave/default.nix +++ b/machines/gustave/default.nix @@ -16,13 +16,16 @@ systemd.network.enable = true; systemd.network.networks."10-wan" = { matchConfig.Name = "ens18"; + routes = [ + { + routeConfig.Metric = 500; + routeConfig.Destination = "0.0.0.0/0"; + } + ]; networkConfig = { - # start a DHCP Client for IPv4 Addressing/Routing DHCP = "ipv4"; - # accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC) - Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45"; + Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45/128"; }; - # make routing on this interface a dependency for network-online.target linkConfig.RequiredForOnline = "routable"; };