Remove $NIX_DB_DIR

This variable has no reason to exist, given $NIX_STATE_DIR.
This commit is contained in:
Eelco Dolstra 2016-07-27 17:14:41 +02:00
parent be64fbb501
commit 2fad86f361
12 changed files with 11 additions and 30 deletions

View file

@ -39,7 +39,7 @@ namespace nix {
LocalStore::LocalStore(const Params & params)
: LocalFSStore(params)
, realStoreDir(get(params, "real", storeDir))
, dbDir(get(params, "state", "") != "" ? get(params, "state", "") + "/db" : settings.nixDBPath)
, dbDir(stateDir + "/db")
, linksDir(realStoreDir + "/.links")
, reservedPath(dbDir + "/reserved")
, schemaPath(dbDir + "/schema")