Files
TerraHome/nixos/template-base
MichaelFisher1997 79a4c941e5
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 16s
fix: enable cloud-init networking in NixOS template
Freshly recreated VMs were reachable but did not accept the injected SSH key, which indicates Proxmox cloud-init settings were not being applied. Enable cloud-init and cloud-init network handling in the base template so static IPs, hostname, ciuser, and SSH keys take effect on first boot.
2026-03-08 05:16:19 +00:00
..

NixOS Proxmox k8s-base Template

This folder contains a Kubernetes-ready NixOS base config for your Proxmox template VM build.

Files

  • flake.nix: pins nixos-25.05 and exposes one host config.
  • configuration.nix: k8s-base settings for Proxmox guests.

Before first apply

  1. Add hardware-configuration.nix from the VM install:
    • nixos-generate-config --root /
    • copy /etc/nixos/hardware-configuration.nix next to configuration.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.