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:
lib.mapAttrsToList (
_: host:
lib.mapAttrsToList (
_: user: { "${user.userName}@${host.hostName}" = toKeyList (user.sopsPublic or [ ]); }
) (host.users or { })
lib.mapAttrsToList (_: user: {
"${user.userName}@${host.hostName}" = toKeyList (user.sopsPublic or [ ]);
}) (host.users or { })
) perSystem
) (builtins.attrValues den.hosts)
)
@@ -139,7 +139,8 @@ in
${name} = {
inherit (value) format neededForUsers;
sopsFile = inputs.self + "/${cfg.secretsDir}/${name}";
};
}
// lib.optionalAttrs (isYamlOrJson && value.keys == [ ]) { key = ""; };
}
else
{ }
@@ -182,7 +183,8 @@ in
${name} = {
inherit (value) format;
sopsFile = inputs.self + "/${cfg.secretsDir}/${name}";
};
}
// lib.optionalAttrs (isYamlOrJson && value.keys == [ ]) { key = ""; };
}
else
{ }