ready for release
Some checks failed
Build & Upload NixOS Proxmox Image / Release Image (push) Has been cancelled
Build & Upload NixOS Proxmox Image / Build NixOS Base Image (push) Has been cancelled

This commit is contained in:
plasmagoat 2025-06-09 03:11:06 +02:00
parent 4ba2f85376
commit e276928862

View file

@ -6,25 +6,12 @@ This is the nixos base image to be used as a template in proxmox
Build the image on remote builder
```bash
nix build .#base --builders "ssh://root@nixos-builder.lab x86_64-linux"
nix build .#base
```
Copy to target proxmox storage
```bash
scp ./result/vzdump-qemu-nixos-*.vma.zst jupiter:/mnt/pve/templates-nfs/dump/
cd ansible
ansible-playbook upload-template.yml
```
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