I guess we first have to find a way to pre-setup necessary config variables programmatically and ideally lock only those in the UI. Currently most of the settings UI is locked once a config file exists.
Maybe you could create a feature request upstream to only lock settings in the UI which are set in the config file.