This commit is contained in:
2026-03-15 10:05:06 +01:00
parent b2ad5a8be5
commit a24da49a18
4 changed files with 37 additions and 54 deletions

View File

@@ -33,13 +33,9 @@ build:
iso:
nixos-rebuild build-image --image-variant iso-installer --flake .#iso
# build ephemeral VM image
ephvm-build:
nixos-rebuild build-image --image-variant qemu --flake .#ephvm
# run ephemeral VM
ephvm-run *ARGS:
bash scripts/ephvm-run.sh $(find -L result -name '*.qcow2' | head -1) {{ARGS}}
ephvm *ARGS:
bash scripts/ephvm-run.sh {{ARGS}}
# ssh into running ephemeral VM
ephvm-ssh port="2222":