[Nix-dev] Sharing Nix store between systems
Shea Levy
shea at shealevy.com
Sat May 16 02:59:45 CEST 2015
Hi Tyson,
Looks like a good start! I’ve left some comments on the commits.
~Shea
> On May 15, 2015, at 5:39 PM, Tyson Whitehead <twhitehead at gmail.com> wrote:
>
> On April 29, 2015 14:03:08 Tyson Whitehead wrote:
>> I'm looking to setup a shared nix store for our HPC clusters. Googling for a shared store only gives a brief discussion back at the end of 2011
>>
>> http://lists.science.uu.nl/pipermail/nix-dev/2011-December/007381.html
>>
>> My current plan of attack (informed by that thread) is to setup a sever (hereafter the "nix server") running the nix daemon that exports
>>
>> - a read-only version of the store
>> - a read/write version of the gcroots and profiles directories
>>
>> Machines that mount the store and gcroots/profiles would then be set to forward the nix daemon socket to the nix server.
>
> Got this working by the way on our HPC clusters. Ended up
>
> 1 - adding socket code to remote-store.cc to initiate connections, and
> 2 - using systemd socket passing with nix-env to listen on a port
>
> I've pushed a temporary branch to a github fork
>
> https://github.com/NixOS/nix/compare/master...twhitehead:remote
>
> I would like to get this officially supported, so my intent is to get some feedback before doing a pull request.
>
> How would you like this to work? Something enabled by configure? Always supported out of the box? Should I open an issue?
>
> Thanks! -Tyson
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list