[Nix-dev] Re: Why is the /nix/store location hardcoded?
Peter Simons
simons at cryp.to
Thu Apr 22 01:32:30 CEST 2010
Hi David,
> Is there some compelling reason why the location of the nix store is
> fixed at compile time [...]?
the path can be changed at run-time by means of $NIX_STORE_DIR, etc. The
manual at
http://hydra.nixos.org/build/326788/download/1/manual/#sec-common-env
has a complete list of variables that might be of interest.
However, it is not possible to move stores around as you please, because
that path is part of all the hashes that make up the paths in the store.
If you change the store path, all contents must be rebuilt. It is
possible to do trickery with symlinks to some extend, though.
Take care,
Peter
More information about the nix-dev
mailing list