diff --git a/.gitignore b/.gitignore index 394e5d7..bb134c5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ tmp/ *.iso result +.proxmox diff --git a/flake.lock b/flake.lock index 7bf1588..556c301 100644 --- a/flake.lock +++ b/flake.lock @@ -147,11 +147,11 @@ "pixelfed": "pixelfed" }, "locked": { - "lastModified": 1730317447, - "narHash": "sha256-Y3AhMe9WsFrjVhbmlTUXJd9TKDa7rFHb9F5hdG2eiJQ=", + "lastModified": 1730977329, + "narHash": "sha256-1/txLla4VANl2g/oyf5ehG5QSGauO/yvOzrblqzJzN8=", "ref": "refs/heads/main", - "rev": "007c168081267ed72dfbcec967b24e6ffc16b4a4", - "revCount": 96, + "rev": "cd194f818df0f1752da4ef15c1e435586d28b596", + "revCount": 97, "type": "git", "url": "https://git.fediversity.eu/fediversity/simple-nixos-fediverse.git" }, diff --git a/provision-vm.sh b/provision-vm.sh new file mode 100755 index 0000000..38420f4 --- /dev/null +++ b/provision-vm.sh @@ -0,0 +1,223 @@ +#!/usr/bin/env sh +set -euC + +## Proxmox API doc: https://pve.proxmox.com/pve-docs/api-viewer + +################################################################################ +## Parse arguments + +username= +password= +iso=result/iso/installer.iso +sockets=1 +cores=1 +memory=2048 +vmid= + +help () { + cat <