dev: custom type for extraPlugin module

This commit is contained in:
raf 2023-07-18 22:21:36 +03:00 committed by Ching Pei Yang
commit 2319ee082c
3 changed files with 25 additions and 1 deletions

View file

@ -97,7 +97,26 @@ with lib; let
package
)
);
extraPluginType = with types;
submodule {
options = {
package = mkOption {
type = pluginsType;
};
dependencies = mkOption {
type = listOf str;
default = [];
};
setup = mkOption {
type = lines;
default = "";
};
};
};
in {
inherit extraPluginType;
pluginsOpt = {
description,
default ? [],