outputs: pass secretsData directly
This commit is contained in:
parent
e9a14767eb
commit
1434cca075
@ -62,19 +62,7 @@
|
||||
description = ''
|
||||
secret data as json for the generator
|
||||
'';
|
||||
default = pkgs.writers.writeJSON "secrets.json" (lib.mapAttrs
|
||||
(_name: secret: {
|
||||
secrets = lib.mapAttrsToList
|
||||
(name: secret: {
|
||||
inherit name;
|
||||
} // lib.optionalAttrs (secret ? groups) {
|
||||
inherit (secret) groups;
|
||||
})
|
||||
secret.secrets;
|
||||
facts = lib.mapAttrs (_: secret: secret.path) secret.facts;
|
||||
generator = secret.generator.finalScript;
|
||||
})
|
||||
config.clanCore.secrets);
|
||||
default = pkgs.writers.writeJSON "secrets.json" config.clanCore.secrets;
|
||||
};
|
||||
vm.create = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
|
Loading…
Reference in New Issue
Block a user