Skip to content

Commit

Permalink
--debug enables --show-trace on nix build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubasa committed Jan 20, 2025
1 parent 97b45ac commit 97252ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ flakeAttr=""
kexecUrl=""
kexecExtraFlags=""
enableDebug=""
nixBuildFlags=""
diskoScript=""
diskoMode="disko"
nixosSystem=""
Expand Down Expand Up @@ -215,6 +216,7 @@ parseArgs() {
--debug)
enableDebug="-x"
printBuildLogs=y
nixBuildFlags="--show-trace"
set -x
;;
--disko-mode)
Expand Down Expand Up @@ -353,6 +355,7 @@ nixBuild() {
NIX_SSHOPTS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $sshKeyDir/nixos-anywhere ${sshArgs[*]}" nix build \
--print-out-paths \
--no-link \
$nixBuildFlags \
"${nixOptions[@]}" \
"$@"
}
Expand Down Expand Up @@ -380,6 +383,7 @@ runVmTest() {
--print-out-paths \
--no-link \
-L \
$nixBuildFlags \
"${nixOptions[@]}" \
"${flake}#${flakeAttr}.system.build.installTest"
}
Expand Down

0 comments on commit 97252ff

Please sign in to comment.