Fwd: [Nix-dev] nixos and NIX_OTHER_STORES

Lluís Batlle viriketo at gmail.com
Sun Oct 4 00:04:26 CEST 2009


Hello,

2009/10/3 Eelco Dolstra <e.dolstra at tudelft.nl>:
> 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).
Right.
>
> 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.
Ah, ok. I did not expect nixos-rebuild used the daemon, while the
system bashrc disables NIX_REMOTE for root.

Thank you,
Lluís.



More information about the nix-dev mailing list