all repos — nixfiles @ b52444517ce8f5e9b28838aa10f4ddc3fc014dda

System and user configuration, managed by nix and home-manager

nanopi: remove duplicate default route
Alan Pearce alan@alanpearce.eu
Fri, 31 May 2024 00:25:10 +0200
commit

b52444517ce8f5e9b28838aa10f4ddc3fc014dda

parent

754c82e8f28a79402135a8442ed689633d433c7e

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M system/nanopi.nixsystem/nanopi.nix
@@ -319,13 +319,14 @@ };         dhcpV4Config = {
           UseDNS = false;
           SendHostname = false;
-          RouteMetric = 2048;
+          UseRoutes = false;
         };
         ipv6AcceptRAConfig.UseDNS = false;
         routes = [
           {
             routeConfig = {
               Gateway = "_dhcp4";
+              Metric = 2048;
               QuickAck = true;
               InitialCongestionWindow = 30;
               InitialAdvertisedReceiveWindow = 30;