Use networkd for networking.* on host

Making VM network changes doesn't reliably update bridge config with the old
scripted NixOS networking.
This commit is contained in:
Davíð Steinn Geirsson 2026-03-07 14:31:39 +00:00
parent d36ff56de4
commit f66a97a29d

View file

@ -64,6 +64,9 @@ in
# Enable IP forwarding
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
# Bridge changes are not reliable with the scripted approach
networking.useNetworkd = true;
# TAP interfaces for VMs with tap-type network interfaces.
# Also includes empty entries for bridge devices so that networkd generates
# .network files for them (without a .network file, networkd won't bring