From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Using a shared Guix store (was RE: [Bio-packaging] testing out guix) Date: Wed, 15 Jul 2015 17:45:43 +0200 Message-ID: <87si8pfmqg.fsf@elephly.net> References: <877fr0i0kl.fsf@mdc-berlin.de> <3784bfce22f4406f8ee2d3affda0474c@exchsrv2.sgc.loc> <87oak4zxo8.fsf@gnu.org> <1436378615368.30302@stowers.org> <87h9pce79t.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFOse-0003Yg-2x for guix-devel@gnu.org; Wed, 15 Jul 2015 11:45:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFOsd-00010x-49 for guix-devel@gnu.org; Wed, 15 Jul 2015 11:45:56 -0400 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Cook, Malcolm" Cc: 'Guix-devel' , 'Pjotr Prins' , "'bio-packaging@mailman.open-bio.org'" Cook, Malcolm writes: > Also, you discussed need for setting NIX_STATE_DIR. This should not > be needed if guix was already installed with configuration of > --localstatedir=/guix/var (with /guix being nfs mounted), right? NIX_STATE_DIR is used to override localstate at runtime. If you are happy with the localstatedir (defined at configure time) you do not need NIX_STATE_DIR. After my vacation I’ll take some time to think about how to allow users to run “guix” on cluster nodes to manipulate their profiles — and how to reliably set this all up. I’m planning on documenting this, both in a specialised form for my blog and in a more generic fashion for the Guix manual. > Ricardo also wrote "For ‘guix package’ to work, > /gnu/var/guix/profiles/per-user must be shared read-write (over NFS) > with correct UID mapping." - I really don't understand this and tried > to elicit feedback in > http://lists.nongnu.org/archive/html/guix-devel/2015-07/msg00216.html > - Can anyone give me clarification on this. I though the guix daemon > is going to manage these profiles. I don’t remember writing this or the context in which I wrote this (could it be that Ludovic wrote this?) — looking at the code for guix/scripts/package.scm it seems that the client performs some of the symlink switching when switching generations (e.g. after installing a new package). For that to work it would need write permission to the user’s profile directory. (I could be completely wrong here. That’s not how it’s set up here and I haven’t yet tested a configuration like this.) ~~ Ricardo