Hi,
This was discussed at least once before [1]. The main problem is with
the store metadata stored in a Sqlite database. On NFS you might get
an error about setting the journalling mode. The workaround is to set
"use-sqlite-wal = false" in your nix.conf. In my experience, trying to
do changes to the store from multiple machines simultaneously will
quickly break that database. It should, however, work fine if you only
write from one place at a time.
Nix is used in some HPC setups at Compute Canada [3] and GRICAD [2]. I
could not find how exactly they implemented it, but maybe you could
ask them directly (don't forget to let us know what they tell you). I
would imagine they export the nix store via some read-only network
filesystem and allow communication to some central build node running
the standard nix daemon via, perhaps, some socket forwarding across
the network.
Best,
Dmitry
[1]
https://nixos.org/nix-dev/2016-February/019463.html
[2]
https://dl.acm.org/citation.cfm?id=3152556
[3]
https://fosdem.org/2018/schedule/event/computecanada/attachments/slides/2480/export/events/attachments/computecanada/slides/2480/CVMFSNixLmodEBCC.pdf
> --
> You received this message because you are subscribed to the Google Groups "nix-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
nix-devel+...@googlegroups.com.
> To post to this group, send email to
nix-...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/nix-devel/CALBVBvy6akPYxhuDpe8UYOkuVaoVYcem%2BdO%2Bakb_yeTrpfhTkg%40mail.gmail.com.
> For more options, visit
https://groups.google.com/d/optout.