1
0
Fork 0

Build only in appvm directory

master
dump_stack() 2018-06-30 19:49:12 +00:00
parent 2fef367e45
commit 90a87a0219
1 changed files with 4 additions and 0 deletions

View File

@ -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 '<nixpkgs/nixos>' -A config.system.build.vm -I nixos-config=nix/${2}.nix || exit 1
NIX_SYSTEM=$(realpath result/system)