function writeConfigFile (ipfsd, config) {
  fs.writeJsonSync(getConfigFilePath(ipfsd), config, { spaces: 2 })
}
Writes the repository configuration file.

@param {import('ipfsd-ctl').Controller} ipfsd
@param {Object<string, any>} config