pub fn write_user_config(config: &Config) -> Result<(), Error>
Writes the user-specific configuration to disk.
Returns an error if the configuration directory cannot be created or the file cannot be written.