diff options
Diffstat (limited to 'krops.nix')
| -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 { |
