diff --git a/lib/types.nix b/lib/types.nix index caeb688fd90..005be5123e7 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -225,8 +225,10 @@ rec { # Deprecated; should not be used because it quietly concatenates # strings, which is usually not what you want. - string = warn "types.string is deprecated because it quietly concatenates strings" - (separatedString ""); + string = separatedString "" // { + name = "string"; + deprecationMessage = "See https://github.com/NixOS/nixpkgs/pull/66346 for better alternative types."; + }; attrs = mkOptionType { name = "attrs";