summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-26 14:17:40 +0000
committertv <tv@krebsco.de>2026-11-26 14:17:40 +0000
commit34f8572fe46e2d009e38d1f3412d5d520b3aba63 (patch)
tree1f244af047d3b66fc1d133be863b157b3054ad31
parent0371ab7b7fdf3fb6bdbb700cb78c669dc188fd98 (diff)
krops.nix: evaluate with the target's secret directory
A host with builders is evaluated on the deploying host, without <secrets>, which stockholm resolves for krebs.secret.directory.
-rw-r--r--krops.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/krops.nix b/krops.nix
index 6cefe637..eafa6c76 100644
--- a/krops.nix
+++ b/krops.nix
@@ -273,6 +273,7 @@ rec {
drv=$(nix-instantiate \
--show-trace \
--add-root "$host_cache"/roots/"$name".drv \
+ --argstr secretDirectory ${q "${target'.path}/secrets"} \
--attr nixosConfigurations."$name".config.system.build.toplevel \
'<hrm/legacy.nix>')
# nix-instantiate prints the GC root, a link to the derivation here.