From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6Av+DcpdImUArgAAauVa8A:P1 (envelope-from ) for ; Sun, 08 Oct 2023 09:44:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6Av+DcpdImUArgAAauVa8A (envelope-from ) for ; Sun, 08 Oct 2023 09:44:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D7FD762C5F for ; Sun, 8 Oct 2023 09:44:09 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=U55oIepJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696751050; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tnghpSjeMH7hQkYJsp4/xrcpcOXiDHzVXf99I1/jFGE=; b=EFBPq1z+Ad6gqCfE97YMs5DY+JFgvdeMW3T0IQtj5W7C5bXhiEviUpFJwlQUe3y5cFGOXU jQKiSQBB8GD1CIiNURTaDmWKZKbJ72jwK1lh0BPcN7VVYDU90rM3cisC1xwV64GtEXIdpH kRNg27OtcL0xyhItPRCxDE+X3VNo3qOHuEDFyiRRvtnHtUBnTmOi/ZUS9kVz0bYWebfpfK deZvG0oYay2NduJqzv8sEoCjIBNvo5s6rgzMrjGP8jhAwM3yXeYrT7j51NKUA9+XrtbuI5 f2z2xGePj5UkShMJTNuEPwvOGiU3vO3GeNbKEMl81qi+Iy2mswWD8UI0oHc9ng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696751050; a=rsa-sha256; cv=none; b=EKs60oNQu6TNOS+oyrn3d7v5K/7hF4kdAw+x3VL+NiJlhjBtJ7ObZkStSAd3eouWS0w8QL cI5tCyg26vfbC+2TTkAToWEeRcTzAgQmMs4tlF5eF/u8ojmS50SFZXh73TS3K40flmj1x9 KRY2kGqRuurCAU2GtPRt9Fexul8i2DyYNWelZGNaxwGFNEX1va0IbYCNqL3vjWGMe3My1J SQTWVeD7q/AJ+jxqLgtLf8AgcIr1J7smMh/KpErQFjhKRdypJ9Qypx1Kbu/IFB+6fghO6B +JPL11pkbuWRMs2fSUuruzlWGv+ntQfZSeQRnrpPWGP5mJHJRKYzmhtSfdbAPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=U55oIepJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpNpL-00044e-EM; Sun, 08 Oct 2023 03:03:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpNpK-00042k-27 for help-guix@gnu.org; Sun, 08 Oct 2023 03:03:46 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpNpI-0002lb-BO for help-guix@gnu.org; Sun, 08 Oct 2023 03:03:45 -0400 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-99c1c66876aso640945866b.2 for ; Sun, 08 Oct 2023 00:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696748622; x=1697353422; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=tnghpSjeMH7hQkYJsp4/xrcpcOXiDHzVXf99I1/jFGE=; b=U55oIepJeWVCTajHPvN0wbrA04wySSDBX9hL0PHXUn34BOszl8MbbBP4vVQDJxJn6G VTdf0A3rS1shAIB9ReI1YnO6FbfRNom0fqpjGuNRhIIAB0V5BZoemTCtVggkH12vtoig qtr6tpiChYnoTErGHfoddm6jSwvCjo1vNpUN0w51APEUOpQ00ckqRO5xKPYGSfRyxisE IapAHWaCwDBkoacl6fTERhIjdgI/Imx6v6L3XL/bIqPisNCwu9VU+MnRBofbXCDZfcHa zPZjLKqMMFuensS2ow9ET3x2vqKEErhBdk3PNxlVgPobO0+j5cCsql3WA2qy22XFNa3a vnhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696748622; x=1697353422; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tnghpSjeMH7hQkYJsp4/xrcpcOXiDHzVXf99I1/jFGE=; b=G//DiSo816nb45PQDd9Gmneal53XvpN1KnPzrhUqioqKL0eGXhDlYVtoSX9affjhE2 eHBIYVMNcuxpwBPMHAH80SrUQca9x+JPtM0A8l3Yi9g3pBKBPuxlVP5rK/y/qF/plKoR S5Hh7lRVIdbUwNKEVPCz/9zhbl9WRNC+i62wEW2rJ07pQ82J/JkzmSWyx6WJ4UAz2zdK Kt2idrMWSSrgDdMW3O+dYeTbQV8jTXPqSM9qyQUK8uC++Y5v7BrjsNgIwJ9uAf6Cb/aq Cl4QKD8JC7imPxGh3cm/hxa/7rzx826sb7oWBtK5pE4Rb+mKdzLEQp7s3ShIeWIW9bHV 5JHw== X-Gm-Message-State: AOJu0Yzgiork+VH2YC+tpGGRaFSzNC3sj9SKxCUfehLWV+GTOH/zKArD U/8B0E24qPyzlkKveWRurpUK3aF0rr2CHA== X-Google-Smtp-Source: AGHT+IFUjG7i97YNlHxAk9BrqRVZXsqZGS60VjYokgh2yQGfGLjDl0q8XxKmjnZmhhItC0hpmsfwAw== X-Received: by 2002:a17:906:73d4:b0:9b8:df8e:cbdd with SMTP id n20-20020a17090673d400b009b8df8ecbddmr9725551ejl.38.1696748622446; Sun, 08 Oct 2023 00:03:42 -0700 (PDT) Received: from localhost ([2a02:ed3:916:6300:c3db:b80e:a694:a54f]) by smtp.gmail.com with ESMTPSA id z9-20020a170906240900b009b2b7333c8bsm5120172eja.81.2023.10.08.00.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 00:03:41 -0700 (PDT) Date: Sun, 8 Oct 2023 10:03:40 +0300 From: Efraim Flashner To: Emmanuel Beffara Cc: help-guix@gnu.org Subject: Re: share guix and its store between distributions Message-ID: Mail-Followup-To: Emmanuel Beffara , help-guix@gnu.org References: <20231005170349.GR1334@beffara.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8N2Kn2brAME4A8U2" Content-Disposition: inline In-Reply-To: <20231005170349.GR1334@beffara.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=efraim.flashner@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.40 X-Spam-Score: -5.40 X-Migadu-Queue-Id: D7FD762C5F X-TUID: Y2xNi1t6rHj3 --8N2Kn2brAME4A8U2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 05, 2023 at 05:03:49PM +0200, Emmanuel Beffara wrote: > Hello Guix, >=20 > Is there a way to share Guix and its store between several distributions? >=20 > My situation is that I have a Guix system installed as my main system, bu= t 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.=20 >=20 > 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 gi= ve > access to both distros. But it feels like a significant waste of resource= s, > since I will end up having many things in both stores. >=20 > 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 be= come > problematic if they don't share the store and the state in `/var/guix`, f= or > instance if they don't share GC roots. >=20 > 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. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --8N2Kn2brAME4A8U2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmUiVEkACgkQQarn3Mo9 g1HERBAAmwZT38G6sv2RZuMjCgHEc70LFr3KGRi1QniUF6+CuM3fHyqSrFdBdNqb a77OE2NQieFdWCri62Ruur6YhP9+KCIRE2d8kADfi4UM6+M1aPBnNx1bAeSBsKb/ HRXGeNgjCoH5GLu2u5Oh3IpBzWn+z+2k+wdCBEgMVIgbJV0uhIfdcbDukhSfYGeK aNw4715RLiAqgFbl14o9zlJYYgcwQH5VNv/sRn6UHjNu7CvpQAHJo7Ftvi9xhjWN MVh0A59hknuU+RFCACLAS4JCTonsy4FJSLDXXQAtYpu34ffpipggbWEnoNajAknT uEFmK2OST7/o2E1f5GbCOjOff/8gFlNDs3vfbyzRpnYsTIWPUttywb+oSd0tqw3m yHbfpQO0k42YZ539EG2aY8iB//DcvhWTratFbhp685YHcmG4EckPKDSnJLZWYJYP WDTPx8Pfm749rjstIVWkfk+Qhp2qLASORkCdNrEqi6Y3nMAB6fYoxwxOTbt0fcNM kB36bYkdU+1IwyIlFA2tBF/6AIm5ppipmqlLCBMDr66HDHmteHipuMpfrB5gV6Yn RXerBl05t0GJt9E8oa/LYVokj7tkjYRes8+2XV1IGjwB4DfaBEDLGe7BLfOKTXRa hFFkDvKM9n8y48MA3PgWECrghH5oiEtAKDP0LTegNoXIDNazrs0= =Jt6T -----END PGP SIGNATURE----- --8N2Kn2brAME4A8U2--