types.nix: fix nonEmptyListOf

This commit is contained in:
Danila Danko 2024-01-29 22:29:44 +03:00
parent 5f5d111816
commit ad853c1368

View File

@ -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 {