forked from mirrors/nixpkgs
Merge pull request #87871 from Mic92/uwsgi
This commit is contained in:
commit
b15831b608
|
@ -79,7 +79,25 @@ in {
|
|||
};
|
||||
|
||||
instance = mkOption {
|
||||
type = types.attrs;
|
||||
type = with lib.types; let
|
||||
valueType = nullOr (oneOf [
|
||||
bool
|
||||
int
|
||||
float
|
||||
str
|
||||
(lazyAttrsOf valueType)
|
||||
(listOf valueType)
|
||||
(mkOptionType {
|
||||
name = "function";
|
||||
description = "function";
|
||||
check = x: isFunction x;
|
||||
merge = mergeOneOption;
|
||||
})
|
||||
]) // {
|
||||
description = "Json value or lambda";
|
||||
emptyValue.value = {};
|
||||
};
|
||||
in valueType;
|
||||
default = {
|
||||
type = "normal";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue