From unknown Wed Jun 18 00:26:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50979 <50979@debbugs.gnu.org> To: bug#50979 <50979@debbugs.gnu.org> Subject: Status: "home configuration" generated by "guix home import" does not lead to a reproducible home environment Reply-To: bug#50979 <50979@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:26:12 +0000 retitle 50979 "home configuration" generated by "guix home import" does not= lead to a reproducible home environment reassign 50979 guix submitter 50979 Maxime Devos severity 50979 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 02 16:11:53 2021 Received: (at submit) by debbugs.gnu.org; 2 Oct 2021 20:11:53 +0000 Received: from localhost ([127.0.0.1]:60657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWlMO-0001Rw-WD for submit@debbugs.gnu.org; Sat, 02 Oct 2021 16:11:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:50392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWlMN-0001Rp-7X for submit@debbugs.gnu.org; Sat, 02 Oct 2021 16:11:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWlMN-0000Mo-2j for bug-guix@gnu.org; Sat, 02 Oct 2021 16:11:51 -0400 Received: from andre.telenet-ops.be ([2a02:1800:120:4::f00:15]:51746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWlML-0008Fh-3y for bug-guix@gnu.org; Sat, 02 Oct 2021 16:11:50 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id 18Bk260010mfAB4018Bk46; Sat, 02 Oct 2021 22:11:44 +0200 Message-ID: Subject: "home configuration" generated by "guix home import" does not lead to a reproducible home environment From: Maxime Devos To: bug-guix@gnu.org Date: Sat, 02 Oct 2021 22:11:39 +0200 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ee2pfvm1ym/zYyJhvu3f" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1633205504; bh=ezvv00NjSBrFMdVH0RW01LJsbQ3JOaF6dd+x1JULMWQ=; h=Subject:From:To:Date; b=JvPUZHfwR4Nb40B7zFLXx9u4mIWv5yecz/fFp8C8IGN3pzLQW7oR2PgpKpHkRzZBX RY4YQJLFxUkCXfFcpywVLlvI9sH5uh7xL7iAs3octYpCmjanfosHfFf1MH6LU0nNcq MQ4bQTd0USoNY0eB1sw7A2Im7O7QwZ82tcJ08B1r+705XCBL5/A0mVBRze+cZVfDXz 2xS+9DQWRTS2/SpC5qUbf9LcqtY1O4nCit+O2u18hDUG4tvqGY5OpVIkuuCaKCf/2Z icyyDSF+KXrd9RlF9MDoS9G1MpfnmsorgOQeISa/1V/y3NB2g+V8+6FQWyz9yFWUiu GHWIyrUXr70WA== Received-SPF: pass client-ip=2a02:1800:120:4::f00:15; envelope-from=maximedevos@telenet.be; helo=andre.telenet-ops.be 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-ee2pfvm1ym/zYyJhvu3f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I ran "guix home import". The output seems mostly reasonable, but the use of 'local-file' seems troublesome: ;; [comments]=20 (use-modules [modules]) (home-environment (packages [stuff]) (services (list (service home-bash-service-type (home-bash-configuration (bashrc (list (slurp-file-gexp (local-file "/home/[USER]/.bashrc")))) (bash-profile (list (slurp-file-gexp (local-file "/home/[USER]/.bash_profile"))))))))) IIUC, when I will run "guix home reconfigure", guix home will intern ~/.bashrc and ~/.bash_profile in the store, build things, and eventually replace ~/.bashrc with some symlink to something in the store. I assume this technically all works out, but this seems a bit irreproducibl= e. What I made modifications to ~/.bash_profile? It seems like, if I run "gui= x home reconfigure" on the same system, the modifications will be preserved, which is fine. Ho= wever, what if I log into another system, copy the home configuration, and run "gu= ix home reconfigure" from there? Then "guix home reconfigure" would pick up the ~/.bash_profil= e from the new system (without the modifications) instead of the old system, right? Then the home configuration generated by "guix home import" isn't self-cont= ained, which seems unfortunate. Two proposals for addressing the issue: (1) Use 'plain-file' instead of 'local-file', to include the contents of = ~/.bashrc inside the generated configuration (2) Let "guix home import" create a directory with the "home-environment.= scm", ".bashrc" and ".bash_profile". Greetings, Maxime --=-ee2pfvm1ym/zYyJhvu3f Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYVi8+xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7nPIAP4tIPELy5C6NybbLAGcauZ4lmCU 5o3/k8v+CtytrvBR+QD/Vyo9mNk4nu+e+HFfUCMsNfPD4xGm8W7ozvMCxw53pgE= =bGVF -----END PGP SIGNATURE----- --=-ee2pfvm1ym/zYyJhvu3f--