File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ enableDebug=""
8
8
diskoScript=" "
9
9
nixosSystem=" "
10
10
extraFiles=" "
11
+ vmTest=" n"
11
12
nixOptions=(
12
13
--extra-experimental-features ' nix-command flakes'
13
14
" --no-write-lock-file"
@@ -240,7 +241,7 @@ parseArgs() {
240
241
nixCopyOptions+=(" --substitute-on-destination" )
241
242
fi
242
243
243
- if [[ -z ${sshConnection-} ]]; then
244
+ if [[ $vmTest == " n " ]] && [[ -z ${sshConnection-} ]]; then
244
245
abort " ssh-host must be set"
245
246
fi
246
247
@@ -299,7 +300,7 @@ runVmTest() {
299
300
echo " --vm-test is not supported with --disk-encryption-keys" >&2
300
301
exit 1
301
302
fi
302
- exec nix build \
303
+ nix build \
303
304
--print-out-paths \
304
305
--no-link \
305
306
-L \
510
511
main () {
511
512
parseArgs " $@ "
512
513
513
- if [[ -n ${vmTest- } ]]; then
514
+ if [[ -n ${vmTest} ]]; then
514
515
runVmTest
516
+ exit 0
515
517
fi
516
518
517
519
# parse flake nixos-install style syntax, get the system attr
You can’t perform that action at this time.
0 commit comments