···11+#!/usr/bin/env sh
22+33+# TODO auto run this and avoid chicken and eggs
44+# Currently running ./upload-installer-proxmox.sh manually
55+66+set -euo pipefail -x
77+88+PROMOX_HOST="proxmox"
99+1010+nix build -L .#nixosConfigurations.installer.config.system.build.isoImage
1111+ISO="$(readlink -e result/iso/*.iso)"
1212+1313+echo "Uploading ${ISO} to Proxmox"
1414+scp "${ISO}" root@proxmox:/var/lib/vz/template/iso/nixos-installer.iso
1515+1616+rm result