types.nix: fix nonEmptyListOf
This commit is contained in:
parent
5f5d111816
commit
ad853c1368
1 changed files with 1 additions and 0 deletions
|
@ -557,6 +557,7 @@ rec {
|
|||
in list // {
|
||||
description = "non-empty ${optionDescriptionPhrase (class: class == "noun") list}";
|
||||
emptyValue = { }; # no .value attr, meaning unset
|
||||
substSubModules = m: nonEmptyListOf (elemType.substSubModules m);
|
||||
};
|
||||
|
||||
attrsOf = elemType: mkOptionType rec {
|
||||
|
|
Loading…
Reference in a new issue