From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iCUNJ6xMZ2f9TQAAe85BDQ:P1 (envelope-from ) for ; Sat, 21 Dec 2024 23:18:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id iCUNJ6xMZ2f9TQAAe85BDQ (envelope-from ) for ; Sun, 22 Dec 2024 00:18:04 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=FajZlqQ9; dkim=fail ("headers rsa verify failed") header.d=scratchpost.org header.s=kas202409041115 header.b=Jn5TdFFn; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-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=1734823054; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ws5GnvluQ9hY5ZBLZYLOiuDvvcUu3/VMW7zDz5OQs98=; b=kLdp1GCCMvrhh4F5EGw/loSj/CRAhk0D+ywt5BS7W6g3kJ1oy8vmbbNZR6LD9dMFEZMO3q f8pz9ylNZzqCT4up3VGXpuQoyqpFR1X7fxgkavIdodUoIU/+GlDIRcByH6oZnqrQvYjf8H jql/cw7zPaozXFUZu8xe29tA7aquCWmSS2/T6AMDcC69E1B7fDAhaw0Ztv6tD2lMPwh3wG qsG6KIEysy2ESDcBULhJnyRSXs+BizWm6/MHY2bCk6d/kIJAqW/2DWyBZqdDwcAM5rmPtx lEDPUU7IPLmI/2Bp99dZMlkAHVsX1/liQwvH4O+oRCWNkHEyIl2fxElheDJH4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=FajZlqQ9; dkim=fail ("headers rsa verify failed") header.d=scratchpost.org header.s=kas202409041115 header.b=Jn5TdFFn; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734823054; a=rsa-sha256; cv=none; b=ZN+pggafOfFv18NDojhiET6EDU4GyKd4CkjMJCm8k2mDm5dHEZUV+NTEy/JZQ+C/ireySg R6oEj1+m0iwYVzUzmFWBSlmc7wjRXgDfShsC+tzZGRfdWaCj2pRX2J7nEC2+9jimnwo8QF NRghZBzkEIgmckcpNvYpsSj5AsfkgcLVUaXsi5b8a88PR/ga/A7GKiRwohStZy+wjX24Y5 BADFjxWbmsB4O0U5qqSSV65NPuN05nUwaxNDseBajpTRjmfP8f7QIliD67xQIQhhxRXhUu YtHEeWcshIqL1k7REFNNs9b4ZAVVGY/zZAziYUrt4pdBe6xVAI6n1ey232od/A== 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 CCDE29729D for ; Sun, 22 Dec 2024 00:17:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tP8iY-0002Oq-KH; Sat, 21 Dec 2024 18:17:06 -0500 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 1tP8iV-0002Oc-KL for bug-guix@gnu.org; Sat, 21 Dec 2024 18:17:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tP8iU-0004lp-QM for bug-guix@gnu.org; Sat, 21 Dec 2024 18:17:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:In-Reply-To:MIME-Version:From:References:To:Subject; bh=ws5GnvluQ9hY5ZBLZYLOiuDvvcUu3/VMW7zDz5OQs98=; b=FajZlqQ9bkuLcZXtR+TDW7DhUvRupDU5+No09MmMLSbOIoOcoqVwQY5R/rUfrt+Vl7kEUqS6XGYBzc6HnQqlgePFcrNYSOoOQX8ZTvA8I2TCrkxgkLUPn22Gpip6D8lEo3lZROyPbiN0YxC18KrRjwu4jksksLdUDzMNcj3oO3Lqw2v2oJS1bwh0LhTQpy7eDGu5v0d0sXMrjNMmk7di/nc6O3xE0cgSEFAcoSsIFCv6PyqFChYWjC3LF/4npou1zH/0nAxJv9OzP+2onrOm3k5NxtveL6dYoLz2NYwZkO/mJYIh/7o6ByGnPF6y6tVMe2sQtpHm9PC9uU8UTyKRBQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tP8iU-00067H-Dz for bug-guix@gnu.org; Sat, 21 Dec 2024 18:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74980: [PATCH] home: container: Create symlink to .guix-home/profile. Resent-From: "Danny Milosavljevic" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 21 Dec 2024 23:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74980 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74980@debbugs.gnu.org, gabriel@erlikon.ch Received: via spool by 74980-submit@debbugs.gnu.org id=B74980.173482301623494 (code B ref 74980); Sat, 21 Dec 2024 23:17:02 +0000 Received: (at 74980) by debbugs.gnu.org; 21 Dec 2024 23:16:56 +0000 Received: from localhost ([127.0.0.1]:48309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP8iO-00066r-8Z for submit@debbugs.gnu.org; Sat, 21 Dec 2024 18:16:56 -0500 Received: from dd30410.kasserver.com ([85.13.145.193]:46892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP8iL-00066g-9G for 74980@debbugs.gnu.org; Sat, 21 Dec 2024 18:16:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scratchpost.org; s=kas202409041115; t=1734823011; bh=ws5GnvluQ9hY5ZBLZYLOiuDvvcUu3/VMW7zDz5OQs98=; h=Subject:To:References:From:In-Reply-To:Date:From; b=Jn5TdFFnyzlwZF+X7bmdTpOPyYqnG9Euyez31arJ9Lcdd/UkDKLWEz911UL2SrwCg PD6xXeFdkqeenXitKk+Pb2HjgWikwFqziTBS8p5gdVo0xRd4pqDUCc5h0N/Yzd6cO9 yzS8FcA1054jXf5RKedvWW4sNKmppcY7N2PBt3tbwjjf8RJJKbwVKss1/lCduLeMDP N6jwzlVN3EkKP1ZK7GNbvuQXbTObDUAE4m64FaOF/vhtC34N89ZCS5m+0fhqQRXW61 e13b8o1bDFROVluPPJKCMs8eTAStYiKFpTNcYuwUPRHy+LJ40JNXY3G9vh0QsRk2g2 gPCryvRuCAgpQ== Received: from dd30410.kasserver.com (dd0802.kasserver.com [85.13.143.1]) by dd30410.kasserver.com (Postfix) with ESMTPSA id 6606A1120D1D; Sun, 22 Dec 2024 00:16:51 +0100 (CET) References: <87zfkrz8ab.fsf@erlikon.ch> <87wmfvz82e.fsf@erlikon.ch> From: "Danny Milosavljevic" User-Agent: ALL-INKL Webmail 2.11 X-SenderIP: 213.147.164.14 MIME-Version: 1.0 In-Reply-To: <87wmfvz82e.fsf@erlikon.ch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20241221231651.6606A1120D1D@dd30410.kasserver.com> Date: Sun, 22 Dec 2024 00:16:51 +0100 (CET) X-Spamd-Bar: / 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -8.89 X-Spam-Score: -8.89 X-Migadu-Queue-Id: CCDE29729D X-TUID: kpEWqTClYDGm Hi, Gabriel Wicki wrote on 19.12.2024 22:00 (GMT +01:00): > * guix/scripts/home.scm: Create the symlink. > > Change-Id: Ib299c53f7cd0ca6ad204325b5c150d579224afd7 > --- > guix/scripts/home.scm | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm > index b4c82d275f..50aaf2abf6 100644 > --- a/guix/scripts/home.scm > +++ b/guix/scripts/home.scm > @@ -344,6 +344,10 @@ (define* (spawn-home-container home > (primitive-load (string-append #$home "/activate")) > (setenv "GUIX_NEW_HOME" #f) > > + (system* "ln" "-s" > + (string-append #$home-directory "/.guix-home/profile") > + (string-append #$home-directory "/.guix-profile")) Isn't that dangerous? What happens if you invoke "guix install xyz" after that? That would have guix mutate the contents of ~/.guix-profile , even though the .guix-home/profile is derived from a declarative manifest, right? Or does it at least only swap out the link for a new .guix-profile directory ? I'm too much of a chicken to try... I mean I can see what you mean but I'm not sure that guix expects the user to do that.