12 using StoreConfig::StoreConfig;
16 "Directory prefixed to all other paths."};
19 rootDir.get() ? *rootDir.get() +
"/nix/var/nix" : settings.nixStateDir,
21 "Directory where Lix will store state."};
24 rootDir.get() ? *rootDir.get() +
"/nix/var/log/nix" : settings.nixLogDir,
26 "directory where Lix will store log files."};
29 rootDir.get() ? *rootDir.get() +
"/nix/store" : storeDir,
"real",
30 "Physical path of the Nix store."};
38 inline static std::string operationName =
"Local Filesystem Store";
40 const static std::string drvsLogDir;
62 virtual kj::Promise<Result<Path>>
65 virtual Path getRealStoreDir() {
return config().realStoreDir; }
67 Path toRealPath(
const Path & storePath)
override
70 return getRealStoreDir() +
"/" + std::string(storePath, config().storeDir.size() + 1);
73 kj::Promise<Result<std::optional<std::string>>> getBuildLogExact(
const StorePath & path)
override;
Definition local-fs-store.hh:36
virtual kj::Promise< Result< Path > > addPermRoot(const StorePath &storePath, const Path &gcRoot)=0
kj::Promise< Result< box_ptr< Source > > > narFromPath(const StorePath &path) override
Definition local-fs-store.cc:87
ref< FSAccessor > getFSAccessor() override
Definition local-fs-store.cc:81
bool isInStore(PathView path) const
Definition store-api.cc:42
Definition gc-store.hh:121
Definition local-fs-store.hh:11
Definition log-store.hh:10
std::string Path
Definition types.hh:28