From: Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr>
To: help-guix@gnu.org
Subject: Re: How to share profile among machines ?
Date: Thu, 25 Apr 2024 16:50:44 +0200 [thread overview]
Message-ID: <4e8bf010-8b5c-4160-95d4-df7b339d7968@iphc.cnrs.fr> (raw)
In-Reply-To: <ZilDUe7LGPpamr7h@ws>
Le 24/04/2024 à 19:37, Tomas Volf a écrit :
> On 2024-04-24 16:54:19 +0200, Emmanuel Medernach wrote:
>> Hello Guix !
>>
>> How do you share profiles among machines ? For instance 2 users wants to
>> have the same profile, user A shares the directory /gnu/store/...-profile to
>> user B, user B either get access to it directly or from a remote machine
>> with a "guix copy <profile>", user B could now use this profile like this:
>>
>> export GUIX_PROFILE="/gnu/store/...-profile"
>> source "$GUIX_PROFILE/etc/profile"
>>
>> But there is a problem: this profile is not listed with
>>
>> guix package --list-profiles
>> guix gc --list-roots
>>
>> The problem is that if user A deletes this profile it gets garbage collected
>> even if user B still needs to use it.
>>
>> So the question is: How user B could add an existing /gnu/store/...-profile
>> (either existing directory or obtained from a guix copy) to the profile and
>> root list ?
> I think you can just create a symlinks in the /var/guix/profiles/per-user/B for
> the profile and in the /var/guix/gcroots/profiles/per-user/B for the gc roots.
>
> I *think* this should work?
Awesome ! This works.
Would it be a good idea to add a guix subcommand to do that ?
Cheers,
Emmanuel
> Tomas
>
> --
> There are only two hard things in Computer Science:
> cache invalidation, naming things and off-by-one errors.
next prev parent reply other threads:[~2024-04-25 14:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 14:54 How to share profile among machines ? Emmanuel Medernach
2024-04-24 17:37 ` Tomas Volf
2024-04-25 14:50 ` Emmanuel Medernach [this message]
2024-04-25 19:35 ` Felix Lechner via
2024-04-26 14:41 ` Emmanuel Medernach
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4e8bf010-8b5c-4160-95d4-df7b339d7968@iphc.cnrs.fr \
--to=emmanuel.medernach@iphc.cnrs.fr \
--cc=help-guix@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.