diff options
Diffstat (limited to 'krops.nix')
| -rw-r--r-- | krops.nix | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -184,8 +184,8 @@ rec { run = "${hostConfig.enstate.providersDir}/krops"; pending = "${run}/pending"; stateDir = "/var/lib/enstate"; - # Sources the host's slots name by location. - locations.secrets.source.command = [ "secrets" name "$(var:key)" ]; + # Named importers the host's slots use. + importers.secrets.command = [ "secrets" name "$(var:key)" ]; in { # By channel name, so the same state packs the same. packAndCopy = pkgs.populate { @@ -196,7 +196,7 @@ rec { set -efu ${lib.concatStrings (lib.mapAttrsToList (channel: sourceList: /* sh */ '' ${local.pkgs.enstate}/bin/enstate \ - --pack ${pkgs.writers.writeJSON "${name}-enstate-${channel}.json" (sourceList // { inherit locations; })} \ + --pack ${pkgs.writers.writeJSON "${name}-enstate-${channel}.json" (lib.recursiveUpdate sourceList { meta.importer = importers; })} \ --out "$1"/${channel} '') sourceLists)} ''); |
