From e5432574e2d54388eb52292da540f2d4de07e9dc Mon Sep 17 00:00:00 2001 From: Spencer Baugh Date: Wed, 31 Jan 2018 22:47:16 +0000 Subject: [PATCH] document ability to set NIX_REMOTE=unix://path/to/socket --- doc/manual/command-ref/env-common.xml | 2 ++ src/libstore/store-api.hh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/doc/manual/command-ref/env-common.xml b/doc/manual/command-ref/env-common.xml index a83aeaf2..361d3e2b 100644 --- a/doc/manual/command-ref/env-common.xml +++ b/doc/manual/command-ref/env-common.xml @@ -154,6 +154,8 @@ $ mount -o bind /mnt/otherdisk/nix /nix daemon if you want to use the Nix daemon to execute Nix operations. This is necessary in multi-user Nix installations. + If the Nix daemon's Unix socket is at some non-standard path, + this variable should be set to unix://path/to/socket. Otherwise, it should be left unset. diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index c0e735cd..b21d3dd8 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -705,6 +705,9 @@ void removeTempRoots(); * ‘daemon’: The Nix store accessed via a Unix domain socket connection to nix-daemon. + * ‘unix://’: The Nix store accessed via a Unix domain socket + connection to nix-daemon, with the socket located at . + * ‘auto’ or ‘’: Equivalent to ‘local’ or ‘daemon’ depending on whether the user has write access to the local Nix store/database.