infrastructure/proxmox.tjo.cloud/justfile
Tine b28b696adc
Some checks failed
/ lint (push) Failing after 1m31s
feat: add proxmox basic nix image
2024-08-31 19:48:38 +02:00

18 lines
290 B
Makefile

default:
@just --list
build:
@nix build .#vm
apply: build
#!/usr/bin/env sh
export NIXOS_IMAGE=$(nix path-info --quiet .#vm)/nixos.qcow2
export TF_VAR_image_path=$NIXOS_IMAGE
echo "Deploying $NIXOS_IMAGE"
tofu init
tofu apply
destroy:
#!/usr/bin/env sh
tofu destroy