summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-07-26 21:03:55 +0200
committertv <tv@krebsco.de>2022-07-26 21:03:55 +0200
commit3aa04be96f19cc5f4866b2b36a351f88f6667bd2 (patch)
tree2736abd8c83817ef10dffab49b67ae7d77c78158
parent9c49e9aa24d7793e2dc99d00e9df04d65851a8ef (diff)
parent117b0b32cd2038a503e3e9e122ab99d0761b1581 (diff)
Merge remote-tracking branch 'prism/master'
-rw-r--r--README.md4
-rw-r--r--pkgs/krops/default.nix5
2 files changed, 7 insertions, 2 deletions
diff --git a/README.md b/README.md
index 98abac1..6e50633 100644
--- a/README.md
+++ b/README.md
@@ -156,6 +156,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 63d23dc..b4f89b6 100644
--- a/pkgs/krops/default.nix
+++ b/pkgs/krops/default.nix
@@ -82,7 +82,8 @@ in
backup ? false,
force ? false,
source,
- target
+ target,
+ trace ? false
}: let
target' = lib.mkTarget target;
in
@@ -95,7 +96,7 @@ in
-A system \
--keep-going \
--no-out-link \
- --show-trace \
+ ${lib.optionalString trace "--show-trace"} \
'<nixpkgs/nixos>'
'';
}