From: "Ludovic Courtès" <ludo@gnu.org>
To: Frank Pursel <frank.pursel@gmail.com>
Cc: 54377@debbugs.gnu.org
Subject: [bug#54377] [PATCH 0/3] Add 'guix home container'
Date: Sat, 19 Mar 2022 11:32:05 +0100 [thread overview]
Message-ID: <87tubunsgq.fsf_-_@gnu.org> (raw)
In-Reply-To: <871qz0vd1f.fsf@gmail.com> (Frank Pursel's message of "Thu, 17 Mar 2022 08:01:16 -0700")
Hi Frank,
Frank Pursel <frank.pursel@gmail.com> 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 <my-config.scm>' 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 ‘home-configuration.scm’ to refer to files in that path,
then GUIX_PACKAGE_PATH needs to be set in the environment of where ‘guix
home’ itself is running. Like so:
export GUIX_PACKAGE_PATH=/path/to/your/packages
guix home container …
Alternatively, you can run:
guix home container -L /path/to/your/packages …
HTH!
Ludo’.
next prev parent reply other threads:[~2022-03-19 10:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-13 21:52 [bug#54377] [PATCH 0/3] Add 'guix home container' Ludovic Courtès
2022-03-13 21:54 ` [bug#54377] [PATCH 1/3] linux-container: 'eval/container' honors #:namespaces Ludovic Courtès
2022-03-13 21:54 ` [bug#54377] [PATCH 2/3] linux-container: Add #:guest-uid and #:guest-gid to 'eval/container' Ludovic Courtès
2022-03-13 21:54 ` [bug#54377] [PATCH 3/3] guix home: Add 'container' command Ludovic Courtès
2022-03-17 6:24 ` Andrew Tropin
2022-03-18 13:25 ` Ludovic Courtès
2022-03-19 5:09 ` Andrew Tropin
2022-03-19 10:39 ` [bug#54377] [PATCH 0/3] Add 'guix home container' Ludovic Courtès
2022-03-19 15:03 ` Andrew Tropin
2022-03-19 18:24 ` bug#54377: " Ludovic Courtès
2022-03-17 15:01 ` [bug#54377] " Frank Pursel
2022-03-19 10:32 ` Ludovic Courtès [this message]
2022-03-23 3:06 ` Frank Pursel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tubunsgq.fsf_-_@gnu.org \
--to=ludo@gnu.org \
--cc=54377@debbugs.gnu.org \
--cc=frank.pursel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.