15typedef enum { smEnabled, smRelaxed, smDisabled } SandboxMode;
17void to_json(JSON & j,
const SandboxMode & e);
18void from_json(
const JSON & j, SandboxMode & e);
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)
32 options->addSetting(
this);
40 bool pluginsLoaded =
false;
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);
58const uint32_t maxIdsPerBuild =
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
unsigned int parse(const std::string &str, const ApplyConfigOptions &options) const override
Definition globals.cc:340
Paths parse(const std::string &str, const ApplyConfigOptions &options) const override
Definition globals.cc:352
std::string Path
Definition types.hh:28