From 90a87a0219d91beaa40f7f7ba9fc39dd84e84ac3 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 30 Jun 2018 19:49:12 +0000 Subject: [PATCH] Build only in appvm directory --- appvm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appvm.sh b/appvm.sh index bbd02c8..aa9878b 100755 --- a/appvm.sh +++ b/appvm.sh @@ -1,4 +1,8 @@ #!/bin/bash + +APPVM_PATH=$(dirname $(realpath $0)) +cd ${APPVM_PATH} + if [[ "$1" == "build" && "$2" != "" ]]; then NIX_PATH=$NIX_PATH:. nix-build '' -A config.system.build.vm -I nixos-config=nix/${2}.nix || exit 1 NIX_SYSTEM=$(realpath result/system)