merge homepage services 2
This commit is contained in:
@@ -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}";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user