mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 23:42:43 +01:00
No more globals.hh in headers
This is needed to rearrange include order, but I also think it is a good thing anyways, as we seek to reduce the use of global settings variables over time.
This commit is contained in:
parent
bce29ab2cf
commit
52212635db
46 changed files with 120 additions and 13 deletions
|
|
@ -8,6 +8,16 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
Path LocalFSStoreConfig::getDefaultStateDir()
|
||||
{
|
||||
return settings.nixStateDir;
|
||||
}
|
||||
|
||||
Path LocalFSStoreConfig::getDefaultLogDir()
|
||||
{
|
||||
return settings.nixLogDir;
|
||||
}
|
||||
|
||||
LocalFSStoreConfig::LocalFSStoreConfig(PathView rootDir, const Params & params)
|
||||
: StoreConfig(params)
|
||||
// Default `?root` from `rootDir` if non set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue