pub fn write_default_conf_in(dir: &Path) -> Result<(), Error>