From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8FuYJXWxNWImeAAAgWs5BA (envelope-from ) for ; Sat, 19 Mar 2022 11:33:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kBMMI3WxNWL3nQAA9RJhRA (envelope-from ) for ; Sat, 19 Mar 2022 11:33:25 +0100 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 F04F13D7E0 for ; Sat, 19 Mar 2022 11:33:24 +0100 (CET) Received: from localhost ([::1]:40724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVWOh-0003wP-Vz for larch@yhetil.org; Sat, 19 Mar 2022 06:33:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVWOM-0003wG-49 for guix-patches@gnu.org; Sat, 19 Mar 2022 06:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36965) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVWOL-0008LS-RD for guix-patches@gnu.org; Sat, 19 Mar 2022 06:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVWOL-0005sl-OR for guix-patches@gnu.org; Sat, 19 Mar 2022 06:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54377] [PATCH 0/3] Add 'guix home container' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Mar 2022 10:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54377 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Frank Pursel Cc: 54377@debbugs.gnu.org Received: via spool by 54377-submit@debbugs.gnu.org id=B54377.164768593922531 (code B ref 54377); Sat, 19 Mar 2022 10:33:01 +0000 Received: (at 54377) by debbugs.gnu.org; 19 Mar 2022 10:32:19 +0000 Received: from localhost ([127.0.0.1]:59089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVWNf-0005rL-22 for submit@debbugs.gnu.org; Sat, 19 Mar 2022 06:32:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVWNd-0005r8-Oj for 54377@debbugs.gnu.org; Sat, 19 Mar 2022 06:32:18 -0400 Received: from [2001:470:142:3::e] (port=59328 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVWNU-0008DE-RL; Sat, 19 Mar 2022 06:32:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=bZMaaF+Kj5obCcgGRprHF8DFeADWMzTRFkKAycz80i8=; b=nocWCBQOEOEnk+CCBSn8 DC9pgIfZ8LkciCW7DB3L3+PBI0ccFTYDx8vrgIKanScnU0GFQGPEu/+rI1IEti/Gr8WosyKzw7h5A pBpUPyJLqNtxOrTG0mKhLgBXVSFsk2O0AcXQ3jWFodVA7KKmQjDzcXp3clcMv8fvKizgZc/JxSKcL HHHZ3kp4GfZmpa8gqRQeMI0mIH8W8O+32jMnP5hv/S81rKs1VICnLohNJaSgWUz9lEewRr9AdosWU XAfudzi/wGxBSFM6RA6lJSp0O1mphHiKOyUMFJXl8DFaLyxEKNtGJ8qkVdUY0J4+Zrs7SoZvM6zuq Va2e3G5NOnQusw==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=51148 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVWNU-00076O-3x; Sat, 19 Mar 2022 06:32:08 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220313215259.9394-1-ludo@gnu.org> <871qz0vd1f.fsf@gmail.com> Date: Sat, 19 Mar 2022 11:32:05 +0100 In-Reply-To: <871qz0vd1f.fsf@gmail.com> (Frank Pursel's message of "Thu, 17 Mar 2022 08:01:16 -0700") Message-ID: <87tubunsgq.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1647686005; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=bZMaaF+Kj5obCcgGRprHF8DFeADWMzTRFkKAycz80i8=; b=nTjZd0rmJ/0bqNnbCscd3xdRLFPw2DsetuZpD9mSaHo2Va0eYlaceE7aUWA0mBJiLUv5sN AgXp5j4Wx5fV8vhv1KlBNRayInjNmTBM7bw4LagSsVQJeJJPdVx1fa71Fj2Agz4ZEg4l5x ir3GJ7vESVGdoDtzg2AKhRLYfOjfbUdttCBbiiNRjY5ZtyjktpDjdR+S3ydWL7BhZc2awG M6PT8RKNclILwATG5xl+44yD/Xt3DaLA2Q2Sa2c+EZu00Ez8zNrVK6paJNixFl4Gpey+GO Ta1bOA1ESdYquh299k/WhU1CRyrCesNismZ9OTbW2t9+NlNKsjFJI+I23zqLJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647686005; a=rsa-sha256; cv=none; b=PLxW4xODSUaaMXlLGgj3x90AiTs77l+m4qvCCuNwDlG2YJ6vhrL4etb930uDog12uj1Jck Z8SURBKnx5EHOhhPk/EcuKsVmwdzzzCywPIe72TpHZahD2NiRrXD4t7oQNewFYiAvQnaPP HhnjSUZlPN2BjBy6FKdnxp7odEyj9gcRTL0ljyDEoxqDw8V1weAhRC6AsPkyyFwfsUyKzj YeB1p47v9NqhFJ2fsMQJpz5y4HP2A/OkXeeA4y1ca2HHdbvKmipOLV8z8Pzy3PSReRyGDf 4ZIxr1+5LGBCGs0KOy+QqwSPkNdtcxBtRdPdor//gvUj1S6XBaNmQVfUbV5Aqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nocWCBQO; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.74 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nocWCBQO; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F04F13D7E0 X-Spam-Score: -3.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7UHFxEWsEAQ1 Hi Frank, Frank Pursel skribis: > This is a very exciting idea. Entry into guix home has some wrinkles in > it that are scary. I know it required several iterations over > home-configuration.scm and 'guix home reconfigure' before I was able to > make peace with my guix home. I see in irc that others are also > experiencing challenges getting the environments where they want them to > be. This patch allows more control over the adoption of guix home while > also cleverly leveraging improvements to guix containers. Very cool, I > want it! I agree, that very well summarizes my motivation for adding it! > I ran this patch against my current, working home configuration to see > what happened and I ran into a problem. My home-configuration.scm sets > the GUIX_PACKAGE_PATH (using simple-service > 'local-environment-variables) and then references packages that are in > that path (in my case a package called emacs-ix). When I executed 'guix > home container ' I received the following errors: > > guix home: error: emacs-ix: unknown package > guix home: error: failed to load '/home/fpp/src/guix-home-config/home-con= figuration.scm': > gnu/packages.scm:544:4: In procedure specification->package+output: > > IDK if this is the desired behavior. Can the environment set in > config.scm be set before loading the packages that may modify the > environment? If you want =E2=80=98home-configuration.scm=E2=80=99 to refer to files in t= hat path, then GUIX_PACKAGE_PATH needs to be set in the environment of where =E2=80= =98guix home=E2=80=99 itself is running. Like so: export GUIX_PACKAGE_PATH=3D/path/to/your/packages guix home container =E2=80=A6 Alternatively, you can run: guix home container -L /path/to/your/packages =E2=80=A6 HTH! Ludo=E2=80=99.