From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Andrew Tropin <andrewtropin@gmail.com>, guix-devel@gnu.org
Subject: Re: Multiple profiles with Guix Home
Date: Thu, 26 May 2022 01:36:28 +0200 [thread overview]
Message-ID: <18d58357210056ef4d5b1bc6fa5e40b884012d12.camel@gmail.com> (raw)
In-Reply-To: <87wne9q3jx.fsf@trop.in>
Hi,
Am Mittwoch, dem 25.05.2022 um 14:01 +0300 schrieb Andrew Tropin:
> On 2022-05-24 20:31, Liliana Marie Prikler wrote:
>
> > Hi,
> >
> > Am Dienstag, dem 24.05.2022 um 14:55 +0300 schrieb Andrew Tropin:
> >
> > > On 2022-05-23 19:05, Liliana Marie Prikler wrote:
> > > > [...]
> > > > I don't think I agree with this choice. To satisfy both my own
> > > > use case of serving profiles in different locations from
> > > > another and another issue being raised w.r.t. configuring the
> > > > location of the .guix-home profile, I think we should make a
> > > > triple of location, optional short name, and manifest (which
> > > > may be generated from packages implicitly). WDYT?
> > > >
> > >
> > > This service is intended for profiles managed by Guix Home, so
> > > every profile MUST be a part of home-environment (~/.guix-home is
> > > a symlink to it). I don't see any meaningful reasons to make it
> > > possible to customize the path inside home-environment.
> > Why though? The decision to restrict Guix Home to dotfiles was
> > already a bad one that has since been overturned, so I think we
> > should carefully evaluate why "~/.guix-home" even is special. In
> > my point of view, any path that is prefixed with the user's home
> > ought to be fair game, as should be constructing intermediate per-
> > user profile symlinks in /var/guix.
>
> It's not bad, it had and has its own goals, pros and cons, I found
> another design descision, which we think is more intuitive, but still
> partially serving original goals and we switched to it. The
> disucssion about ~/.guix-home symlink itself is unrelated to both
> "dotfiles question" and my original statement.
Perhaps it's only tangentially related, but it highlights a point of
contention that I have with Guix Home overall, being that it takes a
few very idiosyncratic "shortcuts", that I don't think make too much
sense in the wider sense of Guix. Consider %profile-directory, for
example. I can't see it anywhere in the code for Guix Home, so I
assume generations are currently littered into the user home. The
specific choice of moving ~/.guix-profile to ~/.guix-home is another.
Assume I only want to use Guix Home for one or two config files, well
nope you can't unless you're willing to move you packages as well or
willing to have a pointless symlink that you didn't ask for.
Don't get me wrong, this is still mostly about managing multiple
profiles with Guix Home, but the way I see it, Guix Home's own profile
management could also be improved.
> All dot/xdg/other files belong to home-environment and no side-
> effects are done during the build of home-environment, the only side-
> effects happens during activation and $HOME touched only by symlink-
> manager and I would like to keep it to be the case, otherwise we will
> end up with tons of stateful ad-hoc hacks.
I struggle to see how my proposal would complicate that other than
adding more jobs to symlink manager (perhaps?). For what it's worth, I
do think that job could be much simplified too by storing the symlinks
in an association list
(("~/path/to/symlink" "/gnu/store/path/to/target") ...),
which could be part of a Guix Home "profile" just like manifest.scm is
part of a normal Guix profile. The activation script would then read
this table, expand "~" (as well as check that it is the first letter i
each of the first paths) and create the symlinks according to spec.
Best of all, it doesn't even matter that much if the target is in the
store, in /var/guix/profiles/per-user, or even another place relative
to ~.
Note that I believe that at the point of writing this file variables
such as $XDG_CONFIG_HOME should already have been resolved relative to
$HOME, with the former being specified in home-configuration or
assuming their usual defaults. YMMV on whether that's actually useful,
one could alternatively allow $XDG_CONFIG_HOME/ etc. as leading
sequences too, though that invites more errors when experimenting with
homeless shelters outside of clean shells.
> That said, I would like to avoid any Guix Home logic to rely on paths
> outside of home-environment. In case you really need
> ~/work/my-project/guix-profile to be created for some reason you can
> extend home-files-service-type and rely on symlink-manager to do this
> dirty job, but the setup-environment script will still source
> home-environment/profiles/your-profile-name and won't know anything
> about ~/work/my-project/guix-profile.
Sounds dirty.
> >
> >
> > >
Cheers
next prev parent reply other threads:[~2022-05-25 23:37 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-03 10:50 Multiple profiles with Guix Home Liliana Marie Prikler
2021-10-04 7:17 ` zimoun
2021-10-04 8:11 ` Liliana Marie Prikler
2022-05-03 14:13 ` Andrew Tropin
2022-05-03 18:34 ` Liliana Marie Prikler
2022-05-03 19:13 ` Maxime Devos
2022-05-03 20:04 ` Liliana Marie Prikler
2022-05-03 20:39 ` Maxime Devos
2022-05-03 20:44 ` Maxime Devos
2022-05-04 9:25 ` Maxime Devos
2022-05-03 20:59 ` Maxime Devos
2022-05-04 4:16 ` Liliana Marie Prikler
2022-05-04 7:01 ` Maxime Devos
2022-05-04 7:08 ` Maxime Devos
2022-05-04 13:15 ` Reza Housseini
2022-05-04 13:46 ` Maxime Devos
2022-05-04 18:14 ` zimoun
2022-05-04 18:21 ` Maxime Devos
2022-05-05 8:01 ` Andrew Tropin
2022-05-04 18:38 ` Liliana Marie Prikler
2022-05-04 20:41 ` Maxime Devos
2022-05-05 4:25 ` Liliana Marie Prikler
2022-05-05 10:53 ` Maxime Devos
2022-05-05 16:24 ` Liliana Marie Prikler
2022-05-05 16:33 ` Maxime Devos
2022-05-05 17:21 ` Liliana Marie Prikler
2022-05-05 17:29 ` Maxime Devos
2022-05-05 11:03 ` Maxime Devos
2022-05-05 16:31 ` Liliana Marie Prikler
2022-05-05 16:42 ` Maxime Devos
2022-05-05 17:12 ` Maxime Devos
2022-05-05 17:27 ` Liliana Marie Prikler
2022-05-05 17:41 ` Maxime Devos
2022-05-05 19:17 ` Liliana Marie Prikler
2022-05-05 19:42 ` Maxime Devos
2022-05-05 20:20 ` Liliana Marie Prikler
2022-05-05 18:00 ` Maxime Devos
2022-05-05 19:08 ` Liliana Marie Prikler
2022-05-05 19:44 ` Maxime Devos
2022-05-05 23:53 ` zimoun
2022-05-05 20:13 ` Maxime Devos
2022-05-05 20:53 ` Liliana Marie Prikler
2022-05-05 21:28 ` Maxime Devos
2022-05-06 4:19 ` Liliana Marie Prikler
2022-05-07 23:06 ` Ludovic Courtès
2022-05-05 20:50 ` zimoun
2022-05-05 18:25 ` zimoun
2022-05-03 21:11 ` Maxime Devos
2022-05-04 4:23 ` Liliana Marie Prikler
2022-05-04 6:57 ` Maxime Devos
2022-05-04 9:24 ` Maxime Devos
2022-05-04 13:05 ` Andrew Tropin
2022-05-05 11:05 ` Maxime Devos
2022-05-05 16:22 ` Liliana Marie Prikler
2022-05-05 17:07 ` Maxime Devos
2022-05-05 17:19 ` Liliana Marie Prikler
2022-05-05 17:29 ` Maxime Devos
2022-05-05 18:24 ` Liliana Marie Prikler
2022-05-05 20:14 ` Maxime Devos
2022-05-05 20:27 ` Liliana Marie Prikler
2022-05-05 20:38 ` Maxime Devos
2022-05-05 20:41 ` Maxime Devos
2022-05-05 20:26 ` Maxime Devos
2022-05-06 18:40 ` Liliana Marie Prikler
2022-05-06 19:54 ` Maxime Devos
2022-05-06 21:32 ` Liliana Marie Prikler
2022-05-07 7:17 ` Maxime Devos
2022-05-23 13:14 ` Andrew Tropin
2022-05-23 17:05 ` Liliana Marie Prikler
2022-05-24 11:55 ` Andrew Tropin
2022-05-24 18:31 ` Liliana Marie Prikler
2022-05-25 11:01 ` Andrew Tropin
2022-05-25 23:36 ` Liliana Marie Prikler [this message]
2022-05-27 12:52 ` andrew
2022-05-27 13:14 ` Liliana Marie Prikler
-- strict thread matches above, loose matches on Subject: below --
2021-10-03 20:51 John Kehayias
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18d58357210056ef4d5b1bc6fa5e40b884012d12.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=andrewtropin@gmail.com \
--cc=guix-devel@gnu.org \
/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 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).