mirror of
https://cgit.krebsco.de/krops
synced 2024-11-22 19:19:46 +01:00
krops writeTest: make trace optional
This commit is contained in:
parent
89e5e67659
commit
117b0b32cd
2 changed files with 7 additions and 2 deletions
|
@ -152,6 +152,10 @@ below `/var/src`, and executes `NIX_PATH=/var/src nix-build -A system '<nixpkgs/
|
|||
|
||||
[see `writeDeploy`](#writeDeploy)
|
||||
|
||||
### `trace` (optional, defaults to false)
|
||||
|
||||
run nix-build with `--show-trace`
|
||||
|
||||
## writeCommand
|
||||
|
||||
This can be used to run other commands than `nixos-rebuild` or pre/post build hooks.
|
||||
|
|
|
@ -81,7 +81,8 @@ in
|
|||
backup ? false,
|
||||
force ? false,
|
||||
source,
|
||||
target
|
||||
target,
|
||||
trace ? false
|
||||
}: let
|
||||
target' = lib.mkTarget target;
|
||||
in
|
||||
|
@ -94,7 +95,7 @@ in
|
|||
-A system \
|
||||
--keep-going \
|
||||
--no-out-link \
|
||||
--show-trace \
|
||||
${lib.optionalString trace "--show-trace"} \
|
||||
'<nixpkgs/nixos>'
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue