types.string is marked as deprecated in lib/types.nix. Maybe there is a better datatype? types.str or types.lines maybe?