fix: network config jank

This commit is contained in:
Leyla Becker 2026-03-18 20:45:17 -05:00
parent 69c10a87b6
commit dc8a946de7
2 changed files with 15 additions and 4 deletions

View file

@ -113,6 +113,10 @@
};
};
# bond0 and wg0 are managed by systemd-networkd; tell NetworkManager to
# leave them alone so NM-wait-online doesn't time out waiting for them.
networking.networkmanager.unmanaged = ["bond0" "wg0" "eno1" "eno2"];
systemd.network = {
enable = true;
@ -123,8 +127,8 @@
Name = "bond0";
};
bondConfig = {
Mode = "802.3ad";
TransmitHashPolicy = "layer3+4";
Mode = "active-backup";
PrimaryReselectPolicy = "always";
};
};
@ -158,7 +162,7 @@
networkConfig.DHCP = "yes";
address = [
"192.168.1.10/32"
"192.168.1.2/24"
];
# Set lower priority for default gateway to allow WireGuard interface binding
@ -174,6 +178,8 @@
"50-wg0" = {
matchConfig.Name = "wg0";
# Don't block networkd-wait-online on the VPN tunnel coming up
linkConfig.RequiredForOnline = "no";
networkConfig = {
DHCP = "no";
};