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/
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to