Re: [Nix-dev] Sharing the Nix store between systems

2011-12-13 Thread Rickard Nilsson
Den 2011-12-13 09:20:32 skrev Lluís Batlle i Rossell : > On Tue, Dec 13, 2011 at 12:39:40AM +0100, Rickard Nilsson wrote: >> one x86_64). Unfortunately, the database got severly corrupted when both >> machines was building things at the same time. I guess this is a feature >> of sqlite+NFS+file lo

Re: [Nix-dev] Sharing the Nix store between systems

2011-12-13 Thread Rickard Nilsson
Den 2011-12-13 05:41:30 skrev Michael Raskin <7c6f4...@mail.ru>: >> One idea could be if slave build machines didn't build directly into the >> store used by the host itself, but instead wrote to a temporary store, >> and >> also to a temporary database (or maybe it doesn't need to write to any

Re: [Nix-dev] Sharing the Nix store between systems

2011-12-13 Thread Lluís Batlle i Rossell
On Tue, Dec 13, 2011 at 12:39:40AM +0100, Rickard Nilsson wrote: > one x86_64). Unfortunately, the database got severly corrupted when both > machines was building things at the same time. I guess this is a feature > of sqlite+NFS+file locks. Afaik, NFS 'file locks' are rarely well implemented

[Nix-dev] Sharing the Nix store between systems

2011-12-12 Thread Michael Raskin
>One idea could be if slave build machines didn't build directly into the >store used by the host itself, but instead wrote to a temporary store, and >also to a temporary database (or maybe it doesn't need to write to any db >at all). The master host could then pick up the build results and p

Re: [Nix-dev] Sharing the Nix store between systems

2011-12-12 Thread Marc Weber
Excerpts from Rickard Nilsson's message of Tue Dec 13 01:54:23 +0100 2011: > Yes, NFS4 would probably help. I'm running v3 now. The problem is that at > least the store needs to be mounted already in the initrd, Probably you can "remount" hopefully switiching to v4 ? At least its worth a try. Ma

Re: [Nix-dev] Sharing the Nix store between systems

2011-12-12 Thread Rickard Nilsson
Den 2011-12-13 01:20:00 skrev Marc Weber : >> I had it figured out quite well, with one "master" machine that could >> perform all writes to the store and to the Nix database, but then I >> discovered that I could not get this master machine to cross-build ARM >> for >> a complete NixOS system.

Re: [Nix-dev] Sharing the Nix store between systems

2011-12-12 Thread Marc Weber
> I had it figured out quite well, with one "master" machine that could > perform all writes to the store and to the Nix database, but then I > discovered that I could not get this master machine to cross-build ARM for > a complete NixOS system. So, then I tried to share both the store and th

[Nix-dev] Sharing the Nix store between systems

2011-12-12 Thread Rickard Nilsson
Hi, I've been talking about this before, but now I've done some more experimentation. I want to share one Nix store between several systems via NFS or CIFS. Ideally, the store should be read-only on all but one system, and all builds should be delegated to that one system (and maybe to some

Re: [Nix-dev] Sharing the Nix store between systems

2011-10-14 Thread Rickard Nilsson
Hi, I decided to solve the problem of store-sharing by letting the nix-worker on localhost forward everything to the nix-worker on another host. This way, I can let a "client host" mount the store read-only, but it is still possible to perform builds and installation, since it is really the master

Re: [Nix-dev] Sharing the Nix store between systems

2011-09-29 Thread Marc Weber
Excerpts from Rickard Nilsson's message of Thu Sep 29 23:30:31 +0200 2011: > * How can I in NixOS specify which user that should do the builds? I would > like to use users and groups defined in a central LDAP catalog, and not > let NixOS create any local build users/groups. grep in nix source f

[Nix-dev] Sharing the Nix store between systems

2011-09-29 Thread Rickard Nilsson
Hi, I would like to put /nix/store in a central NFS share, and let all my NixOS computers mount it over the network. This would save disk space and make new computer deploys simple. However there are some things that I don't know how to handle. * How can I in NixOS specify which user that sh