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.
NixOS Proxmox k8s-base Template
This folder contains a Kubernetes-ready NixOS base config for your Proxmox template VM build.
Files
flake.nix: pinsnixos-25.05and exposes one host config.configuration.nix: k8s-base settings for Proxmox guests.
Before first apply
- Add
hardware-configuration.nixfrom the VM install:nixos-generate-config --root /- copy
/etc/nixos/hardware-configuration.nixnext toconfiguration.nix
Build/apply example inside the VM
sudo nixos-rebuild switch --flake .#template
Notes
- This pre-installs heavy shared Kubernetes dependencies (containerd + kube tools) to reduce per-node bootstrap time.
- Cloud-init still injects the runtime SSH key and per-node hostname/IP.