From 7a7fabd0a5f064531769486d44592126c73f8a03 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 4 Dec 2026 19:36:37 +0000 Subject: krops: a key secrets lacks is absent --- krops.nix | 9 +++++++-- 1 file 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 { -- cgit v1.3.1