diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-20T12·58+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-20T12·58+0200 |
commit | f05d5f89ff4ec52ed2f6d576b2b2323b5292f815 (patch) | |
tree | 86912765d3dbe77b0e810ad3169dc364015fa71a /src/libstore/globals.cc | |
parent | 562585e901d9e5f2ef62be11c2e74badcacb1f50 (diff) |
Read per-user settings from ~/.config/nix/nix.conf
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r-- | src/libstore/globals.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index bb61daa51642..6b9d077469c6 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -53,19 +53,19 @@ Settings::Settings() void Settings::loadConfFile() { applyConfigFile(nixConfDir + "/nix.conf"); + + /* We only want to send overrides to the daemon, i.e. stuff from + ~/.nix/nix.conf or the command line. */ + resetOverriden(); + + applyConfigFile(getConfigDir() + "/nix/nix.conf"); } void Settings::set(const string & name, const string & value) { - overrides[name] = value; Config::set(name, value); } -StringMap Settings::getOverrides() -{ - return overrides; -} - unsigned int Settings::getDefaultCores() { return std::max(1U, std::thread::hardware_concurrency()); |