* bug#74980: [PATCH] home: container: Create symlink to .guix-home/profile.
2024-12-19 21:12 bug#74980: Home container do not instantiate ~/.guix-profile Gabriel Wicki
@ 2024-12-19 21:00 ` Gabriel Wicki
0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Wicki @ 2024-12-19 21:00 UTC (permalink / raw)
To: 74980
* 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"))
+
(when term
;; Preserve TERM for proper interactive use.
(setenv "TERM" term))
base-commit: c3290cee6add60b7e56f5f919d9498d78542790a
--
2.46.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#74980: Home container do not instantiate ~/.guix-profile
@ 2024-12-19 21:12 Gabriel Wicki
2024-12-19 21:00 ` bug#74980: [PATCH] home: container: Create symlink to .guix-home/profile Gabriel Wicki
0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Wicki @ 2024-12-19 21:12 UTC (permalink / raw)
To: 74980
Hi there!
Invoking a home container does not create ~/.guix-profile (which in my case
is symlinked to ~/.guix-home/profile). This leads to a problem when
testing my Emacs configuration, since I there add
~/.guix-profile/share/emacs/site-lisp to its load path.
I guess referring to ~/.guix-profile seems the smart choice, since it
could also work on home environments where I added the necessary
packages "manually" to my user's profile, so I consider only having
~/.guix-home to be somewhat off.
Any ideas on this? Is this intended behaviour? Is my configuration off?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-19 21:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-19 21:12 bug#74980: Home container do not instantiate ~/.guix-profile Gabriel Wicki
2024-12-19 21:00 ` bug#74980: [PATCH] home: container: Create symlink to .guix-home/profile Gabriel Wicki
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).