clan-cli: Add --show-trace to nix build and nixos-rebuild commands

This commit is contained in:
Qubasa
2024-08-12 22:27:39 +02:00
parent c85fc7cb58
commit 7f0604f86e
2 changed files with 3 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ def deploy_machine(machines: MachineGroup) -> None:
cmd = [ cmd = [
"nixos-rebuild", "nixos-rebuild",
"switch", "switch",
"--show-trace",
"--fast", "--fast",
"--option", "--option",
"keep-going", "keep-going",

View File

@@ -35,6 +35,7 @@ def nix_build(flags: list[str], gcroot: Path | None = None) -> list[str]:
str(gcroot), str(gcroot),
"--print-out-paths", "--print-out-paths",
"--no-write-lock-file", "--no-write-lock-file",
"--show-trace",
] ]
) )
+ flags + flags
@@ -47,6 +48,7 @@ def nix_build(flags: list[str], gcroot: Path | None = None) -> list[str]:
"--no-link", "--no-link",
"--print-out-paths", "--print-out-paths",
"--no-write-lock-file", "--no-write-lock-file",
"--show-trace",
] ]
) )
+ flags + flags