diff options
Diffstat (limited to 'doc/manual/env-common.xml')
-rw-r--r-- | doc/manual/env-common.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/manual/env-common.xml b/doc/manual/env-common.xml index fdfbaf59ab2b..d6ebbf654761 100644 --- a/doc/manual/env-common.xml +++ b/doc/manual/env-common.xml @@ -274,6 +274,27 @@ $ mount -o bind /mnt/otherdisk/nix /nix</screen> </varlistentry> +<varlistentry xml:id="envar-other-stores"><term><envar>NIX_OTHER_STORES</envar></term> + + <listitem><para>This variable contains the paths of remote Nix + installations from whichs paths can be copied, separated by colons. + See <xref linkend="sec-sharing-packages" /> for details. Each path + should be the <filename>/nix</filename> directory of a remote Nix + installation (i.e., not the <filename>/nix/store</filename> + directory). The paths are subject to globbing, so you can set it so + something like <literal>/var/run/nix/remote-stores/*/nix</literal> + and mount multiple remote filesystems in + <literal>/var/run/nix/remote-stores</literal>.</para> + + <para>Note that if you’re building through the <link + linkend="sec-nix-worker">Nix daemon</link>, the only setting for + this variable that matters is the one that the + <command>nix-worker</command> process uses. So if you want to + change it, you have to restart the daemon.</para></listitem> + +</varlistentry> + + </variablelist> |