nixos-server/build-vm.sh

8 lines
177 B
Bash
Executable File

#!/bin/sh -e
nixos-rebuild build-vm --flake .#cafe-virt "$@"
rm -f cafe.qcow2
echo "[STARTING VM]"
./result/bin/run-*-vm -nographic
echo "[STOPPING VM]"
rm -f cafe.qcow2 result