From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KKl4Cx+9WGG3NQAAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 22:12:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uO8tBx+9WGHmOAAAB5/wlQ (envelope-from ) for ; Sat, 02 Oct 2021 20:12:15 +0000 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 D1E87351F4 for ; Sat, 2 Oct 2021 22:12:14 +0200 (CEST) Received: from localhost ([::1]:46986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWlMj-0000NC-T9 for larch@yhetil.org; Sat, 02 Oct 2021 16:12:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWlMY-0000My-JE for bug-guix@gnu.org; Sat, 02 Oct 2021 16:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWlMY-00007Q-Bq for bug-guix@gnu.org; Sat, 02 Oct 2021 16:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWlMY-0001SM-81 for bug-guix@gnu.org; Sat, 02 Oct 2021 16:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50979: "home configuration" generated by "guix home import" does not lead to a reproducible home environment Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 02 Oct 2021 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50979@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16332055135581 (code B ref -1); Sat, 02 Oct 2021 20:12:02 +0000 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: From: Maxime Devos 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633205534; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=ezvv00NjSBrFMdVH0RW01LJsbQ3JOaF6dd+x1JULMWQ=; b=I4COoelN1uPNUGsszSHlhs0RN+GuEaV+5OouoIJEN1ZfzIb2GwLp6p5P1PqIP/djAWzDct 61kwK2h8qFWwkWuOWFXmGeTlanFPmPLfLCeBLKY5nxkR2iVCAYVx1ps4V1htrs+WdXcP7I kzbBpl3gCrw2vinRF588uIyvSgvm/cUp/pxp7Wywid2DxF+QprPic85RoiFxpZ4tZeCyxQ ibzzz5LG+ZGPe8i6Srg7+QK0foM5WCOQfjdWVIVp8JSZbM+DFDF47XYR69Q4uDMP6Agak2 m4IbwOhVLCYTH6w5SHEovRFrywBQGt1kkZnZO3/nq28CdsMvlWqVQyWjWS4csw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633205534; a=rsa-sha256; cv=none; b=RGS3RgWRRWJD5T/R7tKXw1ZV6gAUaSGP615NcJh8jCgQ56JkExNmISZ+1+UkG6d8gZZZtS Movj9exuNWXITeKdT05HpAFPAPxmE9r1ha3V2shoZeEGex4EitoIap8pe6P0qe6V88ilXC XtVLYHL4gWpukxpmh5KdSH+H+PKxus1QMRUFoTDjRNhyu5vhUUD8U1PF/j4WkxZbM/KPat yDGvJvBNNTF4pvrZoe+CvcE/dpzISgeWdshMrlZshoodXdb4ofORRTlIn3GOTf8T3oyi0u B2rJIIzi0YY6KEqRhYmOlLol4nxJ9GvgGbGvEZAGSPXstgs/yyVbSFJ1Db9v5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=JvPUZHfw; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=JvPUZHfw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: D1E87351F4 X-Spam-Score: -4.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: 97WYLWVW00gV --=-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--