Feat(inventory/manifest): vendor {description, categories} from 'clanModules'

This commit is contained in:
Johannes Kirschbauer
2025-05-10 14:09:42 +02:00
parent bbed94d6de
commit 77ec1e9e48

View File

@@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, config, ... }:
let
inherit (lib) mkOption;
inherit (lib) types;
@@ -14,6 +14,42 @@ in
'';
type = types.str;
};
description = mkOption {
type = types.str;
description = ''
A Short description of the module.
'';
defaultText = "Short description";
default = config.name;
};
categories = mkOption {
default = [ "Uncategorized" ];
description = ''
Categories are used for Grouping and searching.
While initial oriented on [freedesktop](https://specifications.freedesktop.org/menu-spec/latest/category-registry.html) the following categories are allowed
'';
type = types.listOf (
types.enum [
"AudioVideo"
"Audio"
"Video"
"Development"
"Education"
"Game"
"Graphics"
"Social"
"Network"
"Office"
"Science"
"System"
"Settings"
"Utility"
"Uncategorized"
]
);
};
features = mkOption {
description = ''
Enable built-in features for the module