homepage dash fixed, adding optional path

This commit is contained in:
2025-08-25 19:17:14 +02:00
parent f6b10a2eae
commit ea97bb2df2
2 changed files with 15 additions and 6 deletions

View File

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