Always prefer wired networks to wireless ones
This commit is contained in:
parent
08a063df4d
commit
20aad41319
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue