nixos-server/build-vm.sh

8 lines
177 B
Bash
Raw Normal View History

2024-05-23 11:21:24 +02:00
#!/bin/sh -e
2024-05-24 22:30:04 +02:00
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