Base image for NixOS VM building on proxmox
Find a file
2025-06-08 00:34:47 +02:00
.forgejo/workflows sshmadness 2025-06-08 00:34:47 +02:00
.gitignore Initial commit 2025-06-07 21:24:53 +02:00
ansible.cfg workflow releases 2025-06-07 22:56:00 +02:00
configuration.nix workflow releases 2025-06-07 22:56:00 +02:00
flake.lock workflow releases 2025-06-07 22:56:00 +02:00
flake.nix workflow releases 2025-06-07 22:56:00 +02:00
README.md workflow releases 2025-06-07 22:56:00 +02:00

Nixs base image for promxox

This is the nixos base image to be used as a template in proxmox

Using this base image

Build the image on remote builder

nix build .#base --builders "ssh://root@nixos-builder.lab x86_64-linux"

Copy to target proxmox storage

scp ./result/vzdump-qemu-nixos-*.vma.zst jupiter:/mnt/pve/templates-nfs/dump/

In proxmox UI

  • Go to datacenter->[node]->[storage]->backups
  • Restore the image which was uploaded now
  • Provide name, cpu, memory etc. Don't auto-start
  • Open the new VM -> click on more -> convert to template

Testing the template manually

  • click on base image -> more -> clone
  • Once cloned, provide cloud-init parameters as needed
  • Adjust hard-disk size as needed.
  • start and test