Function nix_setting_set

Source
pub unsafe extern "C" fn nix_setting_set(
    context: *mut nix_c_context,
    key: *const c_char,
    value: *const c_char,
) -> nix_err
Expand description

Sets a setting in the nix global configuration. Use “extra-” to append to the setting’s value. Settings only apply for new State%s. Call nix_plugins_init() when you are done with the settings to load any plugins.

§Arguments

  • context [out] - optional, Stores error information
  • key [in] - The key of the setting to set.
  • value [in] - The value to set for the setting.

§Returns

NIX_ERR_KEY if the setting is unknown, or NIX_OK if the setting was set successfully.