diff options
| author | tv <tv@krebsco.de> | 2026-12-04 19:36:37 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-04 19:36:37 +0000 |
| commit | 7a7fabd0a5f064531769486d44592126c73f8a03 (patch) | |
| tree | 3118726a2bd00a6b3acbf1e0985a347561056554 | |
| parent | f362644adeb3db42e1f75073dc0d26200fbe690e (diff) | |
| -rw-r--r-- | krops.nix | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -211,8 +211,13 @@ builtins.seq forced rec { run = "${hostConfig.enstate.providersDir}/krops"; pending = "${run}/pending"; stateDir = "/var/lib/enstate"; - # Named importers the host's slots use. - importers.secrets.command = [ "secrets" name "$(var:key)" ]; + # Named importers the host's slots use. secrets show exits with 3 + # for a key it doesn't have, and a slot whose key is absent gets + # removed. + importers.secrets = { + command = [ "secrets" name "show" "$(var:key)" ]; + absent.status = 3; + }; in { # By channel name, so the same state packs the same. packAndCopy = pkgs.populate { |
