15typedef enum { smEnabled, smRelaxed, smDisabled } SandboxMode;
17void to_json(JSON & j,
const SandboxMode & e);
18void from_json(
const JSON & j, SandboxMode & e);
20struct MaxBuildJobsSetting :
public BaseSetting<unsigned int>
22 MaxBuildJobsSetting(
Config * options,
24 const std::string & name,
25 const std::string & description,
26 const std::set<std::string> & aliases = {},
27 const bool documentDefault =
true,
28 std::optional<ExperimentalFeature> experimentalFeature = std::nullopt,
29 bool deprecated =
false)
30 : BaseSetting<unsigned int>(def,
true, name, description, aliases, experimentalFeature, deprecated)
32 options->addSetting(
this);
35 unsigned int parse(
const std::string & str,
const ApplyConfigOptions & options)
const override;
38struct PluginFilesSetting :
public BaseSetting<Paths>
40 bool pluginsLoaded =
false;
42 PluginFilesSetting(
Config * options,
44 const std::string & name,
45 const std::string & description,
46 const std::set<std::string> & aliases = {},
47 const bool documentDefault =
true,
48 std::optional<ExperimentalFeature> experimentalFeature = std::nullopt,
49 bool deprecated =
false)
50 : BaseSetting<Paths>(def,
true, name, description, aliases, experimentalFeature, deprecated)
52 options->addSetting(
this);
55 Paths parse(
const std::string & str,
const ApplyConfigOptions & options)
const override;
58const uint32_t maxIdsPerBuild =
66class Settings :
public Config {
68 unsigned int getDefaultCores();
70 StringSet getDefaultSystemFeatures();
72 StringSet getDefaultExtraPlatforms();
76 Path getDefaultSSLCertFile();
137 #include "libstore-settings.gen.inc"
153std::vector<Path> getUserConfigFiles();
154std::vector<Path> getHomeConfigFile();
156extern const std::string nixVersion;
168void assertLibStoreInitialized();
std::vector< Path > nixUserConfFiles
Definition globals.hh:109
Path nixManDir
Definition globals.hh:119
Path nixStateDir
Definition globals.hh:99
bool verboseBuild
Definition globals.hh:129
bool readOnlyMode
Definition globals.hh:135
Path nixConfDir
Definition globals.hh:104
Path nixDaemonSocketFile
Definition globals.hh:124
Path nixLogDir
Definition globals.hh:94
Path nixStore
Definition globals.hh:87
Path nixBinDir
Definition globals.hh:114
Definition apply-config-options.hh:15
std::string Path
Definition types.hh:28