[Nix-dev] nixos and NIX_OTHER_STORES

Eelco Dolstra e.dolstra at tudelft.nl
Sat Oct 3 23:46:02 CEST 2009


Hi,

Lluís Batlle wrote:

> I can't get "nixos-rebuild" to take closures from NIX_OTHER_STORES,
> while "nix-build -A system /etc/nixos/nixos" uses the other stores
> without problem.

I assume you're setting $NIX_OTHER_STORES to something other than the default
(/var/run/nix/remote-stores/*/nix).

In that case it's because nixos-rebuild tries to build through the Nix daemon,
which doesn't see your environment variables.  The daemon should use
/var/run/nix/remote-stores/*/nix, however.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list