unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Mikhail Kryshen <mikhail@kryshen.net>
To: "Ludovic Courtès" <ludovic.courtes@inria.fr>
Cc: help-guix@gnu.org
Subject: Re: ~/.config/guix/current
Date: Wed, 11 Jul 2018 18:46:55 +0300	[thread overview]
Message-ID: <87d0vt3hcg.fsf@eta.cs.prv> (raw)
In-Reply-To: <877em4iq1g.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2726 bytes --]

Ludovic Courtès <ludovic.courtes@inria.fr> writes:

>> a) master node running guix-daemon [1]
>>    - will "guix gc" destroy guix/current profiles if /home is not
>>    mounted on the master node?  What if some users have local
>>    home directories and some are on nfs?
>
>> [1] https://guix-hpc.bordeaux.inria.fr/blog/2017/11/installing-guix-on-a-cluster/
>
> This is what I would recommend, and as the post suggests, you’ll have to
> make sure home directories are visible to guix-daemon, which means
> having them mounted on the master node.
>
> If you don’t do that, there’s a risk that user-pulled Guixes will be
> reclaimed prematurely, simply because the GC won’t see that they are
> still “live.”

But ~root is local on each machine, so root-pulled Guix will still not
be protected from gc.

Btw, is option a) possible on GuixSD?


>> b) guix-daemon on every computer
>>    - then /gnu/store and /var/guix/profiles will by local and user
>>    profiles can be different on every computer, but
>>    ~/.config/guix/current will link to nonexistent store item if
>>    "guix pull" was invoked by the same user on a different machine.
>
> If this is a cluster, I would definitely recommend option a), which
> provides a single world view, shared storage, etc.

It's for GNU/Linux workstations in university labs.  I want to use Guix
to provide additional software that is not available in required
configuration in the host distro, and also give students an interesting
environment to experiment.

I decided for now to go with the option b) for performance and
reliability.  My previous attempts to deploy large software packages on
NFS (even with FS-Cache enabled) didn't work well.  Also, it may be
possible to somehow exploit immutability of the store items to share and
cache them more efficiently.

The computers periodically run "guix pull" as root and I want to make
the updated Guix automatically available to all users, but
/usr/local/bin/guix can't be linked to
/root/.config/guix/current/bin/guix as the /root directory is normally
not searchable by other users — another reason to keep pulled Guix
profiles in /var.  I workaround this by having the script that runs
"guix pull" to symlink /usr/local/bin/guix directly into the new profile
in /gnu/store.


> I agree it would be useful (the way we do it on GuixSD is by having
> /etc/profile define INFOPATH systematically, for instance), but there’s
> no clear way to have ~/.config/guix/current/etc/profile define them
> directly.

It would be useful to have a similar script included in the guix package
to be symlinked into host distro's /etc/profile.d

Thank you, 
Mikhail

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 658 bytes --]

  reply	other threads:[~2018-07-11 15:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-03 15:05 ~/.config/guix/current Mikhail Kryshen
2018-07-09 11:53 ` ~/.config/guix/current Ludovic Courtès
2018-07-11 15:46   ` Mikhail Kryshen [this message]
2018-07-12  8:26     ` ~/.config/guix/current Ludovic Courtès
2018-07-13 13:07       ` ~/.config/guix/current Mikhail Kryshen
2018-07-13 14:42         ` ~/.config/guix/current Ludovic Courtès
2018-07-13 16:51           ` Store on NFS (was Re: ~/.config/guix/current) Mikhail Kryshen
2018-07-16  7:49             ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d0vt3hcg.fsf@eta.cs.prv \
    --to=mikhail@kryshen.net \
    --cc=help-guix@gnu.org \
    --cc=ludovic.courtes@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).