homepage dash fixed, adding optional path
This commit is contained in:
@@ -174,13 +174,17 @@ in {
|
|||||||
lib.lists.forEach homepageCategories (cat: {
|
lib.lists.forEach homepageCategories (cat: {
|
||||||
"${cat}" =
|
"${cat}" =
|
||||||
lib.lists.forEach
|
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: {
|
||||||
"${x.value.homepage.name}" = {
|
"${x.homepage.name}" = {
|
||||||
icon = x.value.homepage.icon;
|
icon = x.homepage.icon;
|
||||||
description = x.value.homepage.description;
|
description = x.homepage.description;
|
||||||
href = "http://${x.value.url}";
|
href = "https://${x.url}${x.homepage.path or ""}";
|
||||||
siteMonitor = "http://${x.value.url}";
|
siteMonitor = "https://${x.url}${x.homepage.path or ""}";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -95,6 +95,11 @@ in {
|
|||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "Services";
|
default = "Services";
|
||||||
};
|
};
|
||||||
|
homepage.path = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "/admin";
|
||||||
|
description = "Optional path suffix for homepage links (e.g. /admin).";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user