[Nix-dev] Is $NIX_OTHER_STORES still supported?

Michael Raskin 7c6f434c at mail.ru
Sun May 31 14:17:53 CEST 2015


>I've been trying to make my NixOS re-use another machine's store, but
>I've had no success. I've mounted the other machine's file system as
>follows:
>
>  # mkdir /run/nix/remote-stores/other
>  # sshfs -o allow_root other:/ /run/nix/remote-stores/other
>
>The other's /nix directory is visible:
>
>  # ls -ld $NIX_OTHER_STORES
>  drwxr-xr-x 1 root root 4096 Mar 27  2014 /run/nix/remote-stores/other/nix
>
>However, my nix-env operations never seem to access that store, even
>though I know for sure that it contains the derivations I'm installing.
>
>Is there anything else I have to do to activate this feature?

Have you restarted nix-daemon? Aparently the check is performed only
once during process initialisation.

Also, I think that the currently recommended method is nix-serve, so 
I would expect NIX_OTHER_STORES support to get neglected.





More information about the nix-dev mailing list