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 in
lib.lists.forEach homepageCategories (cat: { lib.lists.forEach homepageCategories (cat: {
"${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: { (x: {
"${hl.${x}.homepage.name}" = { "${x.value.homepage.name}" = {
icon = hl.${x}.homepage.icon; icon = x.value.homepage.icon;
description = hl.${x}.homepage.description; description = x.value.homepage.description;
href = "https://${hl.${x}.url}"; href = "https://${x.value.url}";
siteMonitor = "https://${hl.${x}.url}"; siteMonitor = "https://${x.value.url}";
}; };
}); });
}) })