From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cENGAQuPOmJGVgEAgWs5BA (envelope-from ) for ; Wed, 23 Mar 2022 04:07:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4DWrNQqPOmLPTwEAG6o9tA (envelope-from ) for ; Wed, 23 Mar 2022 04:07:54 +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 9838F5ABF for ; Wed, 23 Mar 2022 04:07:54 +0100 (CET) Received: from localhost ([::1]:47714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWrLl-0001iY-Pf for larch@yhetil.org; Tue, 22 Mar 2022 23:07:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWrKx-0001ev-JT for guix-patches@gnu.org; Tue, 22 Mar 2022 23:07:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWrKw-0002sm-M4 for guix-patches@gnu.org; Tue, 22 Mar 2022 23:07:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nWrKw-0001Xo-H4 for guix-patches@gnu.org; Tue, 22 Mar 2022 23:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54377] [PATCH 0/3] Add 'guix home container' Resent-From: Frank Pursel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Mar 2022 03:07:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 54377@debbugs.gnu.org Received: via spool by 54377-submit@debbugs.gnu.org id=B54377.16480047915882 (code B ref 54377); Wed, 23 Mar 2022 03:07:02 +0000 Received: (at 54377) by debbugs.gnu.org; 23 Mar 2022 03:06:31 +0000 Received: from localhost ([127.0.0.1]:42337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWrKQ-0001Wo-Re for submit@debbugs.gnu.org; Tue, 22 Mar 2022 23:06:31 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:36657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWrKP-0001Wa-4S for 54377@debbugs.gnu.org; Tue, 22 Mar 2022 23:06:29 -0400 Received: by mail-ej1-f53.google.com with SMTP id bi12so285541ejb.3 for <54377@debbugs.gnu.org>; Tue, 22 Mar 2022 20:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YtFdrTLF+ljHcsvEVkWfZsuL6ZlICFzbx5p0V0gwosQ=; b=foJRLKv0gbNyaED7sqbUnOs4nmifVQz+p7eKvpkMcPBSaImTqH0le/+JO9s2wditFD sAvjf7579ogY3nbzjNQ/GjSB2zfS7RGfpuIscK68aKehaoe0vGQx+GnEHkhLbcHrWstQ edh0Ik3nKDP55ah5k9330pJ5+N2AK9g/daXG3lCUExERaWlQdg4vE9GRN6VO43RvpPOP ILKI5XlKESXscnSV66FnOtEgwjSCDYsAWEjVhQv8VnCwev3gnZLDQUanpZoJApCXn+oV 7tF6Qv0GoRcD0IEQ1UQ4mlEmrxM7ovXQ8uIc4BS5S3mex76RooPzgIyNLDaoJtcrmhgH JY9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YtFdrTLF+ljHcsvEVkWfZsuL6ZlICFzbx5p0V0gwosQ=; b=gQMagKuAjA71fYGE5l6xxYl3FoC39R6WfsX2WLgJvGZPuzAIklfw7fKmKd7y9ncqEf xcYA/wzo8qh5JQvaCVCPj5yXn+0yx20krd/LG7A51tZFLno9FnsPfUVJBth+Y43/62s/ vbEanurRSHHrah/DZ1vb+pqrzpnDDUdT9ZZXIhRLgM3xqzILiV7mk0K0Lpq32+wHJs9M 9BdZC+PKTMAlu7Dy8cbWhdWrxG+uCLqdJX+8B6zRgFZBk1C1ipWXHTfAXEog2UXAtiTB LeczM0nLtBvIRQJvAy8aNuX35FB6WOjDeoQEMLCa8A4ZNJlIJtsu05oQTsoWZhCqp6eC 7mkg== X-Gm-Message-State: AOAM531TkLwrT0IgzuY9uvSGumkNahwNmzvZjTKtj4CAHTXkaR5MBz66 H6C4FUoWvkzSy9cQyHW5SXFHV5qBU6XchmiHj0GaQcw2 X-Google-Smtp-Source: ABdhPJx4bNvEmSefECPHkNhzAIy2vgIgXUPCSprGj4m3mZuKVz1yBUFNjKT4b3rXZQOy1lSTd+Nxv67mPIrQcEAMriQ= X-Received: by 2002:a17:907:1690:b0:6db:325:3088 with SMTP id hc16-20020a170907169000b006db03253088mr29702133ejc.718.1648004783069; Tue, 22 Mar 2022 20:06:23 -0700 (PDT) MIME-Version: 1.0 References: <20220313215259.9394-1-ludo@gnu.org> <871qz0vd1f.fsf@gmail.com> <87tubunsgq.fsf_-_@gnu.org> In-Reply-To: <87tubunsgq.fsf_-_@gnu.org> From: Frank Pursel Date: Wed, 23 Mar 2022 03:06:09 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000aede8c05dada03af" 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=1648004874; 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: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=YtFdrTLF+ljHcsvEVkWfZsuL6ZlICFzbx5p0V0gwosQ=; b=Q3+4IeHtvUsUF9QLjEvYKm7ab7pgmXzV+mPYZQrBgjwU4vo+2DWoqseLF1wKFGhP1uXc2Y rExps8+NYiMhqHmvsrdr2lCDcJB05G4I+NqJRay3Eq4RunRb/+O8Gge2hVlrLj6jILQnwG wmHn8Hh/hZOctEiqCHaVhSAGHUFukQ8/IKgfVp9x4KayI7wXxWx3s8OTPXEjgaND6AviFF eJBDqKnEU/A/LFGyzC3bP0s3TfSAZ85hTRtVhGBG0NH00KFTpehGvBVI/g7ufX0XMNyimF IT24TCVOQA0olXY+ex+I7Lxu+aihSm2EX6VVjrUQJDJCSpFY/LvFiWEWLirIcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648004874; a=rsa-sha256; cv=none; b=K15SkWG7FLzhoHxXkiGaPcy3l0sKyG/WmTjY4ZvaUfmdSo3UPJrbe7sVnsDFy3gCEIF2Qq B8+TGPd+er/m77m3V3/wBKQ6gIbnqzB2uwZ5+xVI0Bw2waQhY+QSdt+cc1Z3JmE6eL/XOq m0f3aidT2HQ+2gQiboSDVhVr0QL9AeUH5VNuny2bstZfcQLKTW5jHE3rZIF0szPBKE3wNv reXe4iVaaol6LutaUez4t2S9EGpt8hYq9MGNxcFGqwxOaF4HrTdLayNUSiQ0USiDveKpCg uOLR3dYH4V60yK/Cuhxr/U+OZFDP3dlsF8d0DFxkNDT1ZJFOFph+7beReS0CVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=foJRLKv0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 5.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=foJRLKv0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 9838F5ABF X-Spam-Score: 5.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: VjW6hRSdD1Lw --000000000000aede8c05dada03af Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, of course, export or -L were needed to get my GUIX_PACKAGE_PATH recognized. and so it was helpful. After catching a configuration error the GUIX_PACKAGE_PATH I had added to an instance of home-environment-service-type works; so that, I no longer need to do this. I'm in the process of finding out how helpful the new guix home container is in rooting out problems in guix home configurations. Thank you, Frank On Sat, Mar 19, 2022 at 10:32 AM Ludovic Court=C3=A8s wrote: > Hi Frank, > > Frank Pursel skribis: > > > This is a very exciting idea. Entry into guix home has some wrinkles i= n > > 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 t= o > > be. This patch allows more control over the adoption of guix home whil= e > > 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 'gui= x > > 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-configuration.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= that 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. > --000000000000aede8c05dada03af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, of course, export or -L were needed to get my GU= IX_PACKAGE_PATH recognized.=C2=A0 and so it was helpful.=C2=A0 After catchi= ng a configuration error the GUIX_PACKAGE_PATH I had added to an instance o= f home-environment-service-type works; so that, I no longer need to do this= .

I'm in the process of finding out how helpfu= l the new guix home container is in rooting out problems in guix home confi= gurations.=C2=A0

Thank you,
Fra= nk


On Sat, Mar 19, 2022 at 10:32 AM Ludovic Court= =C3=A8s <ludo@gnu.org> wrote:
=
Hi Frank,

Frank Pursel <frank.pursel@gmail.com> skribis:

> This is a very exciting idea.=C2=A0 Entry into guix home has some wrin= kles in
> it that are scary.=C2=A0 I know it required several iterations over > home-configuration.scm and 'guix home reconfigure' before I wa= s able to
> make peace with my guix home.=C2=A0 I see in irc that others are also<= br> > experiencing challenges getting the environments where they want them = to
> be.=C2=A0 This patch allows more control over the adoption of guix hom= e while
> also cleverly leveraging improvements to guix containers.=C2=A0 Very c= ool, 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.=C2=A0 My home-configuration.sc= m sets
> the GUIX_PACKAGE_PATH (using simple-service
> 'local-environment-variables) and then references packages that ar= e in
> that path (in my case a package called emacs-ix).=C2=A0 When I execute= d 'guix
> home container <my-config.scm>' I received the following err= ors:
>
> guix home: error: emacs-ix: unknown package
> guix home: error: failed to load '/home/fpp/src/guix-home-config/h= ome-configuration.scm':
> gnu/packages.scm:544:4: In procedure specification->package+output:=
>
> IDK if this is the desired behavior.=C2=A0 Can the environment set in<= br> > 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.=C2=A0 Like so:

=C2=A0 export GUIX_PACKAGE_PATH=3D/path/to/your/packages
=C2=A0 guix home container =E2=80=A6

Alternatively, you can run:

=C2=A0 guix home container -L /path/to/your/packages =E2=80=A6

HTH!

Ludo=E2=80=99.
--000000000000aede8c05dada03af--