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;
|
enable = true;
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
matchConfig = { Name = wireless-interface; };
|
matchConfig = { Name = wireless-interface; };
|
||||||
|
dhcpV4Config = { RouteMetric = 20; };
|
||||||
|
ipv6AcceptRAConfig = { RouteMetric = 20; };
|
||||||
};
|
};
|
||||||
} // lib.mapAttrs
|
} // lib.mapAttrs
|
||||||
(name: attrs: {
|
(name: attrs: {
|
||||||
enable = true;
|
enable = true;
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
matchConfig = { Name = name; };
|
matchConfig = { Name = name; };
|
||||||
|
dhcpV4Config = { RouteMetric = 10; };
|
||||||
|
ipv6AcceptRAConfig = { RouteMetric = 10; };
|
||||||
} // attrs)
|
} // attrs)
|
||||||
wired-interfaces;
|
wired-interfaces;
|
||||||
wait-online.anyInterface = true;
|
wait-online.anyInterface = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue