mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-05 16:03:18 +00:00
Fix wrong qcow directory
This commit is contained in:
parent
babd958410
commit
90d2c99989
2
appvm.sh
2
appvm.sh
|
@ -8,7 +8,7 @@ if [ ! -f nix/local.nix ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "build" && "$2" != "" ]]; then
|
if [[ "$1" == "build" && "$2" != "" ]]; then
|
||||||
rm qemu/qcow/${2}.qcow2
|
rm qemu/qcow2/${2}.qcow2
|
||||||
NIX_PATH=$NIX_PATH:. nix-build '<nixpkgs/nixos>' -A config.system.build.vm -I nixos-config=nix/${2}.nix || exit 1
|
NIX_PATH=$NIX_PATH:. nix-build '<nixpkgs/nixos>' -A config.system.build.vm -I nixos-config=nix/${2}.nix || exit 1
|
||||||
NIX_SYSTEM=$(realpath result/system)
|
NIX_SYSTEM=$(realpath result/system)
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
|
|
Loading…
Reference in a new issue