feat: convert template-base into k8s-ready VM template
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 16s

This commit is contained in:
2026-03-01 01:24:45 +00:00
parent dad409a5b7
commit 3bdf3f8d84
5 changed files with 80 additions and 14 deletions

View File

@@ -1,17 +1,16 @@
# NixOS Proxmox Template Base
# NixOS Proxmox k8s-base Template
This folder contains a minimal NixOS base config you can copy into a new
This folder contains a Kubernetes-ready NixOS base config for your Proxmox
template VM build.
## Files
- `flake.nix`: pins `nixos-24.11` and exposes one host config.
- `configuration.nix`: base settings for Proxmox guest use.
- `flake.nix`: pins `nixos-25.05` and exposes one host config.
- `configuration.nix`: k8s-base settings for Proxmox guests.
## Before first apply
1. Replace `REPLACE_WITH_YOUR_SSH_PUBLIC_KEY` in `configuration.nix`.
2. Add `hardware-configuration.nix` from the VM install:
1. Add `hardware-configuration.nix` from the VM install:
- `nixos-generate-config --root /`
- copy `/etc/nixos/hardware-configuration.nix` next to `configuration.nix`
@@ -23,5 +22,6 @@ sudo nixos-rebuild switch --flake .#template
## Notes
- This is intentionally minimal and avoids cloud-init assumptions.
- If you want host-specific settings, create additional modules and import them.
- 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.