* XDG_CONFIG_DIR and dotfiles handling in Guix Home
@ 2022-03-25 7:11 Andrew Tropin
2022-03-26 21:32 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Tropin @ 2022-03-25 7:11 UTC (permalink / raw)
To: guix-devel, ~abcdw/rde-devel
[-- Attachment #1: Type: text/plain, Size: 1774 bytes --]
In https://issues.guix.gnu.org/52808 we introduced a new service type
called home-xdg-configuration-files-service-type, its purpose should be
clear from the name: It used to define configuration files, which will
go to XDG_CONFIG_HOME (default value is ~/.config) during activation of
new home-environment.
Here an example value, which can be used to extend this service type:
--8<---------------cut here---------------start------------->8---
`(("sway/config" ,(function-producing-file-like-object ...))
("tmux/tmux.conf" ,(function-producing-file-like-object ...)))
--8<---------------cut here---------------end--------------->8---
Previously, the task of managing xdg configuration files was carried by
home-files-service-type, but there is a special handling for config/
subdirectory, which can be unexpected. To make it clear that
xdg configuration files goes to XDG_CONFIG_HOME we created a separate
service type.
If you have any hand-made personal home services, please migrate them to
home-xdg-configuration-files-service-type. Also, don't hesitate to
contribute home services to Guix! :)
Another downside of home-files-service-type is that for historical
reasons it requires to use a path without leading dot and adds it
automatically during activation, which makes it impossible to create a
directory or file without leading dot with it, for example ~/wow. This
behavior is non-intuitive, so in two weeks we will make a breaking
change to fix it.
It won't affect home services, which use
home-xdg-configuration-files-service-type, so please migrate to it from
home-files-service-type before this fix or keep this date (April 8) in
mind and update your services, when the fix is out.
--
Best regards,
Andrew Tropin
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: XDG_CONFIG_DIR and dotfiles handling in Guix Home
2022-03-25 7:11 XDG_CONFIG_DIR and dotfiles handling in Guix Home Andrew Tropin
@ 2022-03-26 21:32 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-03-26 21:32 UTC (permalink / raw)
To: Andrew Tropin; +Cc: guix-devel, ~abcdw/rde-devel
Hi Andrew,
Andrew Tropin <andrew@trop.in> skribis:
> Another downside of home-files-service-type is that for historical
> reasons it requires to use a path without leading dot and adds it
> automatically during activation, which makes it impossible to create a
> directory or file without leading dot with it, for example ~/wow. This
> behavior is non-intuitive, so in two weeks we will make a breaking
> change to fix it.
Sounds like a great plan to me; looking forward to that.
Thank you!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-26 21:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-25 7:11 XDG_CONFIG_DIR and dotfiles handling in Guix Home Andrew Tropin
2022-03-26 21:32 ` Ludovic Courtès
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.