* 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; 3+ 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] 3+ messages in thread
* 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
2024-12-21 23:16 ` Danny Milosavljevic
0 siblings, 1 reply; 3+ 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] 3+ messages in thread
* bug#74980: [PATCH] home: container: Create symlink to .guix-home/profile.
2024-12-19 21:00 ` bug#74980: [PATCH] home: container: Create symlink to .guix-home/profile Gabriel Wicki
@ 2024-12-21 23:16 ` Danny Milosavljevic
0 siblings, 0 replies; 3+ messages in thread
From: Danny Milosavljevic @ 2024-12-21 23:16 UTC (permalink / raw)
To: 74980, gabriel
Hi,
Gabriel Wicki wrote on 19.12.2024 22:00 (GMT +01:00):
> * 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"))
Isn't that dangerous?
What happens if you invoke "guix install xyz" after that?
That would have guix mutate the contents of ~/.guix-profile , even though the .guix-home/profile is derived from a declarative manifest, right?
Or does it at least only swap out the link for a new .guix-profile directory ?
I'm too much of a chicken to try...
I mean I can see what you mean but I'm not sure that guix expects the user to do that.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-21 23:18 UTC | newest]
Thread overview: 3+ 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
2024-12-21 23:16 ` Danny Milosavljevic
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.