From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ELjdJ975a2Jm4QAAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 16:44:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ALiYJ975a2IOzgAA9RJhRA (envelope-from ) for ; Fri, 29 Apr 2022 16:44:46 +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 5633AE9F8 for ; Fri, 29 Apr 2022 16:44:46 +0200 (CEST) Received: from localhost ([::1]:53020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkRrR-0004dX-Di for larch@yhetil.org; Fri, 29 Apr 2022 10:44:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkRqz-0004aI-Ra for guix-devel@gnu.org; Fri, 29 Apr 2022 10:44:17 -0400 Received: from box.euandre.org ([46.101.160.115]:53921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkRqw-0000CG-Gc for guix-devel@gnu.org; Fri, 29 Apr 2022 10:44:17 -0400 Received: from authenticated-user (box.euandre.org [46.101.160.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.euandre.org (Postfix) with ESMTPSA id 0ACF0FC3D1 for ; Fri, 29 Apr 2022 11:44:08 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=euandre.org; s=mail; t=1651243449; bh=2vgx2pUXF3zzvfu78ONwUVhr1b98EXa9psEkfDCx4XY=; h=From:To:Subject:Date:From; b=dYvdy9W2GhZwNx+8bpaeCwm56h6EU7vL7uBqtb4BdiEZRbXn6NADRivXV0/k787C1 pvhIwfCaMjbKRWvdNVxaBU9ifYwA+CH6IEv4UVmNsRRYgIuAIdHkFEPrqnRyvbk9VN WCieAnDb6DWtNtd6luV7KJW25kMV3aCq6kvp60oBVFvYnqcNke2ji45l7FIxZ9uQOd pcdJ9OxdnR4gUsPck2NH13Qr+fOPfAyNrZiRrauivso1Yy+2YaglGSJZ/mtfz41zRq 87Y0tWthY7FZ5oqh1lDQWPazUqRPKVcP8Fu+aO0JFl2FCiC6ad47HJejoW8Aao4mxj rKxNLrUFh4sSQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: EuAndreh To: guix-devel@gnu.org Subject: RFC: Configurable placing of the ~/.guix-home symlink Date: Fri, 29 Apr 2022 11:44:01 -0300 Message-ID: <165124344113.9376.12189389163309720556@localhost> Received-SPF: pass client-ip=46.101.160.115; envelope-from=eu@euandre.org; helo=box.euandre.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651243486; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KE00zBHwIjQPmkRDL6vpyCTK/aJu7mbQ/+3juSkRv2g=; b=JsqQET1hXJyyYSLzVF7T5G2u8Fh3Zg2EcjvXcjfDB/JphkgK3uyU1rnAf7VPPpm3cSgpqf ssaI7ocXzdWZlsrMQFlKpCXUM8hB8jlpSqf5qeuAPmH4PZOI7ak0lhPQnIxPr1+j6vkjWL m6ursbNjMFN9ZnFYcI2yJIAYh+xCohT6Aw+bx0GQTMimB8TsJ0sDbMhXbordzDr5BUl4jb FBqDdXfj/wJpbGzJnY9gRcBaCj2CBEXEeXiBQ9QPSCB2GEek8ASzjVD/iqotwsCCFltkSq eZL4AAfZgxqpAZiOOwnOM9rreLi70N2bYvgftLyWBNxQoYmBrTWV9pHHG5nBNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651243486; a=rsa-sha256; cv=none; b=hDvaOAyRP17sVSFsLE1h5bLZlkAfhKhFzsCAZQmIZ6tY7i6CeW1b4hPQdXM3Ny0uQDkRrP w3nMo4g2X9gURLLQftDa7S495iLR3o9UVMNGqQANabwbh+7d13ER34YgKy5W/PvSeO8umC RAEsMvsQ4ONjpz2KZE62mR3r+WBlJf26gRO8i8fSllQnyNjqtm8fuB0csrbcFJjBAXebBK FSFwpLARNn6cr1jPwBpuDRdPEykcKKIWiwZdK2qqdqJN5qb+YoCvy610VaUgATfn25RWtZ xKGUkMojU34PKs0WiLygRcDY4uGtbMUOSKeQ+yO6grVDZqCtNVxw/nfD3hvhtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=euandre.org header.s=mail header.b=dYvdy9W2; dmarc=pass (policy=quarantine) header.from=euandre.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=euandre.org header.s=mail header.b=dYvdy9W2; dmarc=pass (policy=quarantine) header.from=euandre.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5633AE9F8 X-Spam-Score: -8.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: aKKCCxh5Z+8z Hi Guix! When trying to get a clean $HOME, I see that the ~/.guix-home path is fixed= in the code under gnu/home/*, usually via (string-append (GETENV "HOME") "/.guix-home"). I want to propose a configurable path to ~/.guix-home, and allow this to be chosen in the (home-environment ...) declaration. It would expose a GUIX_HOME_PATH_ENVIRONMENT variable[0] so that one could dynamically retrie= ve the path to it, if needed in scripts or similar. The implementation would = also need to be able to handle changes in the (home-environment ...) declaration, and know when to remove the old symlink from ~/.guix-home to the new path, similar to what the gnu/home/services/symlink-manager.scm does nowadays. How do you feel about this? What do you think? Is there a shortcoming, pitfalls, limitations that this approach entails? I'm willing do work on the implementation and on tests where applicable, and send the patches (eventually when I get this done =3Dp). I wanted to raise= a discussion before jumping into the code, even to get input and see how the community feels about this. WDYT? [0]: I'm not picking this name, I just made up to make this more concrete. = I'd look at the existing variable declarations, such as those exposed by `guix shell` to make it consistent with them.