From 33bb0ffb1766e1b7096c666f8f2a2753ae90eea4 Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Sun, 8 Mar 2026 20:12:03 +0000 Subject: [PATCH] fix: keep DHCP enabled by default on template VM 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. --- nixos/template-base/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/template-base/configuration.nix b/nixos/template-base/configuration.nix index a045fcc..12ce782 100644 --- a/nixos/template-base/configuration.nix +++ b/nixos/template-base/configuration.nix @@ -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" ];