fix(homer): add description option
This commit is contained in:
parent
1ecaac36e4
commit
4482f8aaa8
@ -58,6 +58,14 @@
|
|||||||
example = "App";
|
example = "App";
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
description = lib.mkOption {
|
||||||
|
type = lib.types.nullOr lib.types.str;
|
||||||
|
description = ''
|
||||||
|
Application description.
|
||||||
|
'';
|
||||||
|
example = "An amazing app!";
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
category = lib.mkOption {
|
category = lib.mkOption {
|
||||||
type = lib.types.nullOr lib.types.str;
|
type = lib.types.nullOr lib.types.str;
|
||||||
description = ''
|
description = ''
|
||||||
@ -121,6 +129,7 @@
|
|||||||
inherit (cat) name;
|
inherit (cat) name;
|
||||||
items = lib.forEach catApps (a: {
|
items = lib.forEach catApps (a: {
|
||||||
inherit (a.dashboard) method name type url;
|
inherit (a.dashboard) method name type url;
|
||||||
|
subtitle = a.dashboard.description;
|
||||||
icon = lib.optionalString (a.dashboard.icon != null) "fas fa-${a.dashboard.icon}";
|
icon = lib.optionalString (a.dashboard.icon != null) "fas fa-${a.dashboard.icon}";
|
||||||
target = "_blank";
|
target = "_blank";
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user