unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tomas Volf <~@wolfsden.cz>
To: Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr>
Cc: help-guix@gnu.org
Subject: Re: How to share profile among machines ?
Date: Wed, 24 Apr 2024 19:37:21 +0200	[thread overview]
Message-ID: <ZilDUe7LGPpamr7h@ws> (raw)
In-Reply-To: <91ae443f-7dda-4486-bb58-fdc57dea6e38@iphc.cnrs.fr>

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

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?

Tomas

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

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

  reply	other threads:[~2024-04-24 17:38 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 [this message]
2024-04-25 14:50   ` Emmanuel Medernach
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

  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=ZilDUe7LGPpamr7h@ws \
    --to=~@wolfsden.cz \
    --cc=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.
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).