types.str is just for single (unique) strings. If this option is used more than one place you'll get an error instead of the strings being merged. I think types.lines is a better fit for this option. See nixpkgs/lib/types.nix.