12 using StoreConfig::StoreConfig;
25 "Directory prefixed to all other paths."};
28 rootDir.get() ? *rootDir.get() +
"/nix/var/nix" : settings.nixStateDir,
30 "Directory where Nix will store state."};
33 rootDir.get() ? *rootDir.get() +
"/nix/var/log/nix" : settings.nixLogDir,
35 "directory where Nix will store log files."};
38 rootDir.get() ? *rootDir.get() +
"/nix/store" : storeDir,
"real",
39 "Physical path of the Nix store."};
48 inline static std::string operationName =
"Local Filesystem Store";
50 const static std::string drvsLogDir;
52 LocalFSStore(
const Params & params);
73 virtual Path getRealStoreDir() {
return realStoreDir; }
78 return getRealStoreDir() +
"/" + std::string(storePath, storeDir.size() + 1);
81 std::optional<std::string> getBuildLogExact(
const StorePath &
path)
override;
void narFromPath(const StorePath &path, Sink &sink) override
Definition local-fs-store.cc:83
ref< SourceAccessor > getFSAccessor(bool requireValidPath=true) override
Definition local-fs-store.cc:76
virtual Path addPermRoot(const StorePath &storePath, const Path &gcRoot)=0
Path toRealPath(const Path &path, const NixStringContext &context)
std::string path
Definition lexer.l:1399
Definition gc-store.hh:102
LocalFSStoreConfig(PathView path, const Params ¶ms)
Definition local-fs-store.cc:11
Definition log-store.hh:10
Definition serialise.hh:20
bool isInStore(PathView path) const
Definition store-api.cc:32
std::string Path
Definition types.hh:22