fix: keep DHCP enabled by default on template VM
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 14s

The template machine can lose connectivity when rebuilt directly because it has no cloud-init network data during template maintenance. Restore DHCP as the default for the template itself while keeping cloud-init + networkd enabled so cloned VMs can still consume injected network settings.
This commit is contained in:
2026-03-08 20:12:03 +00:00
parent cd8e538c51
commit 33bb0ffb17

View File

@@ -10,7 +10,7 @@ in
./hardware-configuration.nix;
networking.hostName = "k8s-base-template";
networking.useDHCP = false;
networking.useDHCP = lib.mkDefault true;
networking.useNetworkd = true;
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];