#include "config.h" #include "globals.hh" #include "util.hh" #include "archive.hh" #include #include namespace nix { /* The default location of the daemon socket, relative to nixStateDir. The socket is in a directory to allow you to control access to the build daemon by setting the mode/ownership of the directory appropriately. (This wouldn't work on the socket itself since it must be deleted and recreated on startup.) */ #define DEFAULT_SOCKET_PATH "/daemon-socket/socket" Settings settings; Settings::Settings() { keepFailed = false; keepGoing = false; tryFallback = false; buildVerbosity = lvlError; maxBuildJobs = 1; buildCores = 1; readOnlyMode = false; thisSystem = SYSTEM; maxSilentTime = 0; buildTimeout = 0; useBuildHook = true; printBuildTrace = false; multiplexedBuildOutput = false; reservedSize = 8 * 1024 * 1024; fsyncMetadata = true; useSQLiteWAL = true; syncBeforeRegistering = false; useSubstitutes = true; useChroot = false; impersonateLinux26 = false; keepLog = true; logComp
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release.nix')
0 files changed, 0 insertions, 0 deletions
ings.end()) return; res.clear(); Strings ss = tokenizeString(i->second); res.insert(ss.begin(), ss.end()); } void Settings::_get(Strings & res, const string & name) { SettingsMap::iterator i = settings.find(name); if (i == settings.end()) return; res = tokenizeString(i->second); } template void Settings::_get(N & res, const string & name) { SettingsMap::iterator i = settings.find(name); if (i == settings.end()) return; if (!string2Int(i->second, res)) throw Error(format("configuration setting `%1%' should have an integer value") % name); } string Settings::pack() { string s; foreach (SettingsMap::iterator, i, settings) { if (i->first.find('\n') != string::npos || i->first.find('=') != string::npos || i->second.find('\n') != string::npos) throw Error("invalid option name/value"); s += i->first; s += '='; s += i->second; s += '\n'; } return s; } Settings::SettingsMap Settings::getOverrides() { return overrides; } const string nixVersion = PACKAGE_VERSION; }