diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | pkgs/krops/default.nix | 5 |
2 files changed, 7 insertions, 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. diff --git a/pkgs/krops/default.nix b/pkgs/krops/default.nix index 7fe8370..10b96ce 100644 --- a/pkgs/krops/default.nix +++ b/pkgs/krops/default.nix @@ -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>' ''; } |