summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-04 19:36:37 +0000
committertv <tv@krebsco.de>2026-12-04 19:36:37 +0000
commit7a7fabd0a5f064531769486d44592126c73f8a03 (patch)
tree3118726a2bd00a6b3acbf1e0985a347561056554
parentf362644adeb3db42e1f75073dc0d26200fbe690e (diff)
krops: a key secrets lacks is absentHEADmaster
-rw-r--r--krops.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/krops.nix b/krops.nix
index e406159c..d3afcee4 100644
--- a/krops.nix
+++ b/krops.nix
@@ -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 {