mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 21:46:01 +01:00
Make the gc socket path configurable
This commit is contained in:
parent
1d5d30b12f
commit
dadc4a42c6
1 changed files with 1 additions and 1 deletions
|
|
@ -318,7 +318,7 @@ Roots LocalStore::findRoots(bool censor)
|
|||
closeOnExec(fd.get());
|
||||
|
||||
// FIXME: Don’t hardcode
|
||||
string socketPath = "/nix/var/nix/gc-socket/socket";
|
||||
string socketPath = getEnv("NIX_GC_SOCKET_PATH").value_or("/nix/var/nix/gc-socket/socket");
|
||||
|
||||
struct sockaddr_un addr;
|
||||
addr.sun_family = AF_UNIX;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue