![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | SettingInfo |
Public Member Functions | |
| virtual bool | set (const std::string &name, const std::string &value)=0 |
| virtual void | getSettings (std::map< std::string, SettingInfo > &res, bool overriddenOnly=false) const =0 |
| void | applyConfig (const std::string &contents, const std::string &path="<unknown>") |
| virtual void | resetOverridden ()=0 |
| virtual nlohmann::json | toJSON ()=0 |
| virtual std::string | toKeyValue (bool overriddenOnly=false)=0 |
| virtual void | convertToArgs (Args &args, const std::string &category)=0 |
| void | warnUnknownSettings () |
| void | reapplyUnknownSettings () |
Protected Member Functions | |
| AbstractConfig (StringMap initials={}) | |
Protected Attributes | |
| StringMap | unknownSettings |
| void nix::AbstractConfig::applyConfig | ( | const std::string & | contents, |
| const std::string & | path = "<unknown>" ) |
Parses the configuration in contents and applies it
|
pure virtual |
Converts settings to Args to be used on the command line interface
Implemented in nix::Config, and nix::GlobalConfig.
|
pure virtual |
Adds the currently known settings to the given result map res.
Implemented in nix::Config, and nix::GlobalConfig.
| void nix::AbstractConfig::reapplyUnknownSettings | ( | ) |
Re-applies all previously attempted changes to unknown settings
|
pure virtual |
Resets the overridden flag of all Settings
Implemented in nix::Config, and nix::GlobalConfig.
|
pure virtual |
Sets the value referenced by name to value. Returns true if the setting is known, false otherwise.
Implemented in nix::Config, and nix::GlobalConfig.
|
pure virtual |
Outputs all settings to JSON
Implemented in nix::Config, and nix::GlobalConfig.
|
pure virtual |
Outputs all settings in a key-value pair format suitable to be used as nix.conf
Implemented in nix::Config, and nix::GlobalConfig.
| void nix::AbstractConfig::warnUnknownSettings | ( | ) |
Logs a warning for each unregistered setting