Always prefer wired networks to wireless ones

This commit is contained in:
Charlotte Van Petegem 2023-01-25 11:00:52 +01:00
parent 08a063df4d
commit 20aad41319
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -59,12 +59,16 @@
enable = true;
DHCP = "yes";
matchConfig = { Name = wireless-interface; };
dhcpV4Config = { RouteMetric = 20; };
ipv6AcceptRAConfig = { RouteMetric = 20; };
};
} // lib.mapAttrs
(name: attrs: {
enable = true;
DHCP = "yes";
matchConfig = { Name = name; };
dhcpV4Config = { RouteMetric = 10; };
ipv6AcceptRAConfig = { RouteMetric = 10; };
} // attrs)
wired-interfaces;
wait-online.anyInterface = true;