File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ flakeAttr=""
7
7
kexecUrl=" "
8
8
kexecExtraFlags=" "
9
9
enableDebug=" "
10
+ nixBuildFlags=" "
10
11
diskoScript=" "
11
12
diskoMode=" disko"
12
13
nixosSystem=" "
@@ -106,6 +107,8 @@ Options:
106
107
disable passing --substitute-on-destination to nix-copy
107
108
* --debug
108
109
enable debug output
110
+ * --show-trace
111
+ show nix build traces
109
112
* --option <key> <value>
110
113
nix option to pass to every nix related command
111
114
* --from <store-uri>
@@ -212,6 +215,9 @@ parseArgs() {
212
215
--copy-host-keys)
213
216
copyHostKeys=y
214
217
;;
218
+ --show-trace)
219
+ nixBuildFlags+=" --show-trace"
220
+ ;;
215
221
--debug)
216
222
enableDebug=" -x"
217
223
printBuildLogs=y
@@ -353,6 +359,7 @@ nixBuild() {
353
359
NIX_SSHOPTS=" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $sshKeyDir /nixos-anywhere ${sshArgs[*]} " nix build \
354
360
--print-out-paths \
355
361
--no-link \
362
+ " $nixBuildFlags " \
356
363
" ${nixOptions[@]} " \
357
364
" $@ "
358
365
}
@@ -380,6 +387,7 @@ runVmTest() {
380
387
--print-out-paths \
381
388
--no-link \
382
389
-L \
390
+ " $nixBuildFlags " \
383
391
" ${nixOptions[@]} " \
384
392
" ${flake} #${flakeAttr} .system.build.installTest"
385
393
}
You can’t perform that action at this time.
0 commit comments