unique
lib.types.unique
Docs pulled from | This Revision | 29 minutes ago
Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.
Noogle detected
Implementation
The following is the current implementation of this function.
{ message }:
type:
mkOptionType rec {
name = "unique";
inherit (type) description descriptionClass check;
merge = mergeUniqueOption {
inherit message;
inherit (type) merge;
};
emptyValue = type.emptyValue;
getSubOptions = type.getSubOptions;
getSubModules = type.getSubModules;
substSubModules = m: uniq (type.substSubModules m);
functor = elemTypeFunctor name { elemType = type; } // {
type = payload: lib.types.unique { inherit message; } payload.elemType;
};
nestedTypes.elemType = type;
}