fix(homer): add description option

This commit is contained in:
Michael Thomas 2024-05-10 01:29:47 +00:00
parent 1ecaac36e4
commit 4482f8aaa8

View File

@ -58,6 +58,14 @@
example = "App";
default = null;
};
description = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = ''
Application description.
'';
example = "An amazing app!";
default = null;
};
category = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = ''
@ -121,6 +129,7 @@
inherit (cat) name;
items = lib.forEach catApps (a: {
inherit (a.dashboard) method name type url;
subtitle = a.dashboard.description;
icon = lib.optionalString (a.dashboard.icon != null) "fas fa-${a.dashboard.icon}";
target = "_blank";
});