···558558 nestedTypes.elemType = elemType;
559559 };
560560561561+ # TODO: deprecate this in the future:
562562+ loaOf = elemType: types.attrsOf elemType // {
563563+ name = "loaOf";
564564+ deprecationMessage = "Mixing lists with attribute values is no longer"
565565+ + " possible; please use `types.attrsOf` instead. See"
566566+ + " https://github.com/NixOS/nixpkgs/issues/1800 for the motivation.";
567567+ nestedTypes.elemType = elemType;
568568+ };
569569+561570 # Value of given type but with no merging (i.e. `uniq list`s are not concatenated).
562571 uniq = elemType: mkOptionType rec {
563572 name = "uniq";