forked from Fediversity/Fediversity
remove module functions
This commit is contained in:
parent
70789547ee
commit
e69bb3bccb
1 changed files with 0 additions and 36 deletions
|
@ -1,36 +0,0 @@
|
||||||
/**
|
|
||||||
Modular function type
|
|
||||||
*/
|
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
inherit (lib) mkOption types;
|
|
||||||
inherit (types)
|
|
||||||
submodule
|
|
||||||
functionTo
|
|
||||||
optionType
|
|
||||||
;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options = {
|
|
||||||
input-type = mkOption {
|
|
||||||
type = optionType;
|
|
||||||
};
|
|
||||||
output-type = mkOption {
|
|
||||||
type = optionType;
|
|
||||||
};
|
|
||||||
function-type = mkOption {
|
|
||||||
type = optionType;
|
|
||||||
readOnly = true;
|
|
||||||
default = functionTo (submodule {
|
|
||||||
options = {
|
|
||||||
input = mkOption {
|
|
||||||
type = config.input-type;
|
|
||||||
};
|
|
||||||
output = mkOption {
|
|
||||||
type = config.output-type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue