···558 nestedTypes.elemType = elemType;
559 };
560000000000561 # Value of given type but with no merging (i.e. `uniq list`s are not concatenated).
562 uniq = elemType: mkOptionType rec {
563 name = "uniq";
···558 nestedTypes.elemType = elemType;
559 };
560561+ # TODO: deprecate this in the future:
562+ loaOf = elemType: types.attrsOf elemType // {
563+ name = "loaOf";
564+ deprecationMessage = "Mixing lists with attribute values is no longer"
565+ + " possible; please use `types.attrsOf` instead. See"
566+ + " https://github.com/NixOS/nixpkgs/issues/1800 for the motivation.";
567+ nestedTypes.elemType = elemType;
568+ };
569+570 # Value of given type but with no merging (i.e. `uniq list`s are not concatenated).
571 uniq = elemType: mkOptionType rec {
572 name = "uniq";