Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
uds-remote-store.hh File Reference

Go to the source code of this file.

Classes

struct  nix::UDSRemoteStoreConfig
struct  nix::UDSRemoteStore

Functions

std::filesystem::path nix::getDaemonSocketPath (const Store::Config &config)

Function Documentation

◆ getDaemonSocketPath()

std::filesystem::path nix::getDaemonSocketPath ( const Store::Config & config)

Get the daemon socket path for the given store configuration.

Returns NIX_DAEMON_SOCKET_PATH if set, otherwise stateDir / "daemon-socket" / "socket" where stateDir is from the config (for LocalFSStore) or global settings.

Note
This function accepts any Store::Config, not just UDSRemoteStoreConfig, because the daemon uses it to determine where to listen for connections (configuring the daemon) and where to connect to (configuring the client). The daemon may be serving any type of store — UDSRemoteStoreConfig is for client stores, not for the server store.