From: Efraim Flashner <efraim@flashner.co.il>
To: Emmanuel Beffara <manu@beffara.org>
Cc: help-guix@gnu.org
Subject: Re: share guix and its store between distributions
Date: Sun, 8 Oct 2023 10:03:40 +0300 [thread overview]
Message-ID: <ZSJUTDbSdCLJCHA-@3900XT> (raw)
In-Reply-To: <20231005170349.GR1334@beffara.org>
[-- Attachment #1: Type: text/plain, Size: 2011 bytes --]
On Thu, Oct 05, 2023 at 05:03:49PM +0200, Emmanuel Beffara wrote:
> Hello Guix,
>
> Is there a way to share Guix and its store between several distributions?
>
> My situation is that I have a Guix system installed as my main system, but I
> would like to install another distribution on the same machine (a current
> Debian, specifically) and use Guix as a package manager there, in order to
> benefit from its ability to create reproducible environments.
>
> Of course, it works to have the other distribution completely independent,
> with its own Guix store. The only thing is to handle Grub correctly to give
> access to both distros. But it feels like a significant waste of resources,
> since I will end up having many things in both stores.
>
> Moreover, ideally I would like to share home directories between the two
> distributions, by mounting the same partition as /home, and still be able to
> use `guix home` and `guix shell` in both distributions. By some minimal
> tuning, I can make it so that users have the same UIDs and GIDs in both
> distributions. But I imagine that using Guix in both distributions can become
> problematic if they don't share the store and the state in `/var/guix`, for
> instance if they don't share GC roots.
>
> Is there a proper way to make that work? Or is it a bad idea?
It looks like you already have the right idea. You'd have to share /gnu
and /var/guix between the two distributions, as well as have the same
UID (and possibly GID) for the users. You would also have to tell Guix's
grub to also add an entry for Debian.
I don't know if you'd end up having issues with graphical programs from
Guix overriding environment variables for Debian or if there might be
issues with guix-home with a foreign distro.
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-10-08 7:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 15:03 share guix and its store between distributions Emmanuel Beffara
2023-10-05 15:42 ` Felix Lechner via
2023-10-05 16:11 ` Daniel Littlewood
2023-10-08 7:03 ` Efraim Flashner [this message]
2023-10-09 8:43 ` Emmanuel Beffara
2023-10-11 12:45 ` Simon Tournier
2023-10-11 15:56 ` Emmanuel Beffara
2023-10-11 20:14 ` Simon Tournier
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=ZSJUTDbSdCLJCHA-@3900XT \
--to=efraim@flashner.co.il \
--cc=help-guix@gnu.org \
--cc=manu@beffara.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.