From 12ca5165b3961e78dbedf6e636fc7597413de918 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 16 Mar 2026 15:47:07 +0100 Subject: On Wolfram, assign Ethernet higher routing priority over WiFi Signed-off-by: Mel --- machines/wolfram/devices.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/machines/wolfram/devices.nix b/machines/wolfram/devices.nix index b33fb99..df65f76 100644 --- a/machines/wolfram/devices.nix +++ b/machines/wolfram/devices.nix @@ -63,12 +63,20 @@ "10-ether" = { name = "enp7s0"; DHCP = "yes"; + + # higher priority if available + dhcpV4Config.RouteMetric = 10; + dhcpV6Config.RouteMetric = 10; }; # wifi connection via mediatek mt7921k (supports wifi 6e) "10-wlan" = { name = "wlp6s0"; DHCP = "yes"; networkConfig.IgnoreCarrierLoss = "3s"; + # lower priority, if ethernet exists route via that. + dhcpV4Config.RouteMetric = 20; + dhcpV6Config.RouteMetric = 20; + # authentication handled via wpa_supplicant in modules/wireless.nix }; }; -- cgit 1.4.1