diff options
| author | tv <tv@krebsco.de> | 2026-11-26 14:17:40 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-26 14:17:40 +0000 |
| commit | 34f8572fe46e2d009e38d1f3412d5d520b3aba63 (patch) | |
| tree | 1f244af047d3b66fc1d133be863b157b3054ad31 /krops.nix | |
| parent | 0371ab7b7fdf3fb6bdbb700cb78c669dc188fd98 (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.
Diffstat (limited to 'krops.nix')
| -rw-r--r-- | krops.nix | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. |
