diff --git a/modules/networking.nix b/modules/networking.nix index 1c79913..7aa1269 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -21,6 +21,10 @@ }; systemd.services."systemd-networkd-wait-online".enable = false; + # Prioritize ethernet over WiFi + systemd.network.networks."40-enp0s31f6".dhcpV4Config.RouteMetric = 10; + systemd.network.networks."40-wlan0".dhcpV4Config.RouteMetric = 20; + # Static IP for home network systemd.network.networks."24-home" = { name = "wlan0";