modules/frontmatter: init module interface as source of frontmatter

This commit is contained in:
Johannes Kirschbauer
2024-11-15 16:00:15 +01:00
parent f9f760cbe8
commit 9028027220
6 changed files with 102 additions and 63 deletions

View File

@@ -0,0 +1,58 @@
{
lib,
specialArgs,
...
}:
let
inherit (lib) mkOption types;
in
{
options = {
description = mkOption {
type = types.str;
description = ''
'';
};
categories = mkOption {
default = [ "Uncategorized" ];
type = types.listOf (
types.enum [
"AudioVideo"
"Audio"
"Video"
"Development"
"Education"
"Game"
"Graphics"
"Social"
"Network"
"Office"
"Science"
"System"
"Settings"
"Utility"
"Uncategorized"
]
);
};
features = mkOption {
default = [ ];
type = types.listOf (
types.enum [
"inventory"
]
);
};
constraints = mkOption {
default = { };
type = types.submoduleWith {
inherit specialArgs;
modules = [
../constraints
];
};
};
};
}