From: Andrew Tropin <andrew@trop.in>
To: guix-devel@gnu.org, ~abcdw/rde-devel@lists.sr.ht
Subject: XDG_CONFIG_DIR and dotfiles handling in Guix Home
Date: Fri, 25 Mar 2022 10:11:23 +0300 [thread overview]
Message-ID: <87v8w2se04.fsf@trop.in> (raw)
[-- 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 --]
next reply other threads:[~2022-03-25 7:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 7:11 Andrew Tropin [this message]
2022-03-26 21:32 ` XDG_CONFIG_DIR and dotfiles handling in Guix Home Ludovic Courtès
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=87v8w2se04.fsf@trop.in \
--to=andrew@trop.in \
--cc=guix-devel@gnu.org \
--cc=~abcdw/rde-devel@lists.sr.ht \
/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).