I've actually had the same question, recently. I was planning to try a few things myself before I ask here. But, now that the discussion is there I'll just chime in...
Given a case where you can't get the admin to give you `/nix`, and where you have space/compute constraints on the target, would it be possible to create the full nix install on your own local machine in the correct paths, and then just copy it to the target? Maybe a little like your own, small, on-demand hydra... Is there some info on this in the docs? The closest I could find was cross-compiling [1], but it doesn't seem to address the `/somepath/nix/store` issue. Best, Andreas [1]: https://nixos.org/wiki/CrossCompiling On 13 June 2014 06:22, Mateusz Kowalczyk <[email protected]> wrote: > In the Nix manual it says: > > ## > > It is best not to change the Nix store from its default, since doing so > makes it impossible to use pre-built binaries from the standard Nixpkgs > channels — that is, all packages will need to be built from source. > > ## > > I'd like to know why it is impossible. I don't understand why it matters > in the slightest whether the store sits at /nix/store or > somewhereelse/nix/store. Why does it even know the difference? Are there > plans to improve on this? After all, everything would still be in the > same relative location to the store. I'm not even sure if it actually > means that it is in fact impossible with how nix is designed as opposed > to ‘it's not currently implemented’. > > In environments where one only has regular user rights resources are > often constrained, be it hard drive space, memory or computational > power. Incurring the penalty of having to compile everything on top of > that merely because the store is not sitting at the top of the file > system is rather sub-optimal so it would be great if there was a solution. > > -- > Mateusz K. > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
