Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng 14eadfd653
Bump dependencies 2022-04-29 18:13:02 +02:00
coolneng c42d36bb5e
Prioritize ethernet over WiFi 2022-04-29 18:12:46 +02:00
2 changed files with 7 additions and 3 deletions

View File

@ -38,11 +38,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1650831523, "lastModified": 1651007983,
"narHash": "sha256-6pDZ08SAXsUx5rOP391x+TG39ENP/XA8VMa1tQvgEjc=", "narHash": "sha256-GNay7yDPtLcRcKCNHldug85AhAvBpTtPEJWSSDYBw8U=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "87d34a6b8982e901b8e50096b8e79ebc0e66cda0", "rev": "e10da1c7f542515b609f8dfbcf788f3d85b14936",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -21,6 +21,10 @@
}; };
systemd.services."systemd-networkd-wait-online".enable = false; 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 # Static IP for home network
systemd.network.networks."24-home" = { systemd.network.networks."24-home" = {
name = "wlan0"; name = "wlan0";