setup: avoid line_prepend, and prefer to generate a configuration file instead.