This commit is contained in:
2026-06-06 02:01:57 +04:00
parent 650c6724f0
commit 902e05cd06
+7 -5
View File
@@ -75,9 +75,9 @@ in
perSystem: perSystem:
lib.mapAttrsToList ( lib.mapAttrsToList (
_: host: _: host:
lib.mapAttrsToList ( lib.mapAttrsToList (_: user: {
_: user: { "${user.userName}@${host.hostName}" = toKeyList (user.sopsPublic or [ ]); } "${user.userName}@${host.hostName}" = toKeyList (user.sopsPublic or [ ]);
) (host.users or { }) }) (host.users or { })
) perSystem ) perSystem
) (builtins.attrValues den.hosts) ) (builtins.attrValues den.hosts)
) )
@@ -139,7 +139,8 @@ in
${name} = { ${name} = {
inherit (value) format neededForUsers; inherit (value) format neededForUsers;
sopsFile = inputs.self + "/${cfg.secretsDir}/${name}"; sopsFile = inputs.self + "/${cfg.secretsDir}/${name}";
}; }
// lib.optionalAttrs (isYamlOrJson && value.keys == [ ]) { key = ""; };
} }
else else
{ } { }
@@ -182,7 +183,8 @@ in
${name} = { ${name} = {
inherit (value) format; inherit (value) format;
sopsFile = inputs.self + "/${cfg.secretsDir}/${name}"; sopsFile = inputs.self + "/${cfg.secretsDir}/${name}";
}; }
// lib.optionalAttrs (isYamlOrJson && value.keys == [ ]) { key = ""; };
} }
else else
{ } { }