merge homepage services 2

This commit is contained in:
2025-08-03 17:09:07 +02:00
parent 1b471acb53
commit 41c83b8ca2

View File

@@ -158,13 +158,14 @@ in {
in
lib.lists.forEach homepageCategories (cat: {
"${cat}" =
lib.lists.forEach (lib.attrsets.mapAttrsToList (name: value: name) (homepageServices "${cat}"))
lib.lists.forEach
(lib.attrsets.mapAttrsToList (name: value: {inherit name value;}) (homepageServices "${cat}"))
(x: {
"${hl.${x}.homepage.name}" = {
icon = hl.${x}.homepage.icon;
description = hl.${x}.homepage.description;
href = "https://${hl.${x}.url}";
siteMonitor = "https://${hl.${x}.url}";
"${x.value.homepage.name}" = {
icon = x.value.homepage.icon;
description = x.value.homepage.description;
href = "https://${x.value.url}";
siteMonitor = "https://${x.value.url}";
};
});
})