DietPi [1] has one massive (15KLoC) bash script [2] for system config.
[1] https://dietpi.com
[2] https://github.com/MichaIng/DietPi/blob/master/dietpi/dietpi...
Less easy for developers, but code is mature and stable in production for years.