summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {