mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
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 New Issue
Block a user