From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EBWWJn7QHmUxYAAA9RJhRA:P1 (envelope-from ) for ; Thu, 05 Oct 2023 17:04:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EBWWJn7QHmUxYAAA9RJhRA (envelope-from ) for ; Thu, 05 Oct 2023 17:04:31 +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 3331640C89 for ; Thu, 5 Oct 2023 17:04:27 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beffara.org header.s=gm1 header.b=WWBYjOme; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696518267; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1OflclRZN30PJ5vnCd9vAOLlXxRabApDDpyvU2Jts9w=; b=ICt2bJiZfvdN1/Stz4GW9dv5RnGJKLKiEZwJ6Qd/l/2ojvb2wOG33zNen7Twr1hEkzABak MAzPrnNFOWv2mU0aKMzblwDY4alQM8g9QjDrcojQLzp1DrvqjCd8RQoQli72KSqLusoQCq jNF1L384rWsWhs/dqXWecE4Gv9XtiyekhMU6QytdxyIzIg7RZ66tTVX8ydYFFCucXMSiYd lI4WkkpUvIUR8jlpIdPpN2+o/hHL7xsPoBd7yx+vyoS0RGqYrrJI46B2Iu5O1qq4eT3RP9 Kq24WxNRdL0Y5qqm0gZj942EKHFr+oZ3nFMCpMNOKzs3Vho31SaIc8MwnRv0Lg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696518267; a=rsa-sha256; cv=none; b=fyNI92gRBBMVIuqo7ZWC05C+w0WGumIU4SjA0B48u2GUBPBNqCEkLFDgDSGhklZGU0FHug P3SxF8mrdUp7QBMX2cJSRlUDFgnke7SQWXA0Tj1JFOk9BqHexwExNE+hzrNvcr/7aDBmKY xPgjih4wjB5yzVwnw83RseIUZbHnlAiy3vVt4/MBSEOU4GwCdo3BOoFpM5JedMf6rL7W00 feUtCfQStder41seZld9x4puoc30Sg691nKdsmB9YjraedG+bkFXa0CVWrYocdXtzyI1Hx yHJcmvp4Ys4PWg+N6cWDjcOPMtPacCObX3Bjw2rFWfpabyBlcMOChHCy1uoCjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=beffara.org header.s=gm1 header.b=WWBYjOme; 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"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoPtO-0004ty-RW; Thu, 05 Oct 2023 11:03:58 -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 1qoPtM-0004tn-TZ for help-guix@gnu.org; Thu, 05 Oct 2023 11:03:56 -0400 Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qoPtK-00068c-OR for help-guix@gnu.org; Thu, 05 Oct 2023 11:03:56 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id CF05224000C for ; Thu, 5 Oct 2023 15:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beffara.org; s=gm1; t=1696518231; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=1OflclRZN30PJ5vnCd9vAOLlXxRabApDDpyvU2Jts9w=; b=WWBYjOmemhvdulSAJnGRq28sOq2Q7OLs9DtqHD4ierN2lqTA4haBxppheWOTT4iU8SxX+m pPlUwOsX/emYLZjRUkgtIed3OLudBrOico/81OO3EBWEITAIW1FJOEDuuv9lEsCVozmS8/ vyjInGEOXjgLK1vXf6JeSwVFOmkbrTV+u298xI3Bq1aPQSx0bdYBFOBQ8w4A4Coa1Vzpac XGPI/ZhtPM9RpxZ80hNEaz4nBQuXztPilZUiPYWzat6O0lJjc6vNIJXT5AdPvNZVKy8sKa MsGtDi+9CIAsuSTYTahUswma+pLIHkYR3kl3UmMHwUeBHILMmGll3c/m6FxB/A== Date: Thu, 5 Oct 2023 17:03:49 +0200 Message-ID: <20231005170349.GR1334@beffara.org> From: Emmanuel Beffara To: help-guix@gnu.org Subject: share guix and its store between distributions References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-GND-Sasl: manu@beffara.org Received-SPF: none client-ip=2001:4b98:dc4:8::221; envelope-from=manu@beffara.org; helo=relay1-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham 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: -4.04 X-Spam-Score: -4.04 X-Migadu-Queue-Id: 3331640C89 X-TUID: 4drJZXhGqCSG 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? -- Emmanuel