* bug#56610: Guix Home placing dotfiles in wrong directory.
@ 2022-07-17 7:07 Raghav Gururajan via Bug reports for GNU Guix
2022-07-17 8:34 ` Oleg Pykhalov
2022-07-18 6:31 ` Andrew Tropin
0 siblings, 2 replies; 3+ messages in thread
From: Raghav Gururajan via Bug reports for GNU Guix @ 2022-07-17 7:07 UTC (permalink / raw)
To: 56610; +Cc: Ludovic Courtès, andrew
[-- Attachment #1.1: Type: text/plain, Size: 693 bytes --]
Hello Guix,
home-files-service-type is placing configuration files in `~/config/foo`
instead of `~/.config/foo`.
For example, the following guix-home service should place the git
configuration in ~/.config/git`. But it creates a new directory
`~/config/git` and places the file there.
(simple-service 'git-config
home-files-service-type
(list
`("config/git/config"
,(local-file
(string-append (getenv "HOME")
"/dotfiles/git/config")))))
It started happening recently, so will try to bisect.
Regards,
RG.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#56610: Guix Home placing dotfiles in wrong directory.
2022-07-17 7:07 bug#56610: Guix Home placing dotfiles in wrong directory Raghav Gururajan via Bug reports for GNU Guix
@ 2022-07-17 8:34 ` Oleg Pykhalov
2022-07-18 6:31 ` Andrew Tropin
1 sibling, 0 replies; 3+ messages in thread
From: Oleg Pykhalov @ 2022-07-17 8:34 UTC (permalink / raw)
To: 56610; +Cc: 56610-done
[-- Attachment #1: Type: text/plain, Size: 887 bytes --]
Hi,
Raghav Gururajan via Bug reports for GNU Guix <bug-guix@gnu.org> writes:
> home-files-service-type is placing configuration files in `~/config/foo`
> instead of `~/.config/foo`.
>
> For example, the following guix-home service should place the git
> configuration in ~/.config/git`. But it creates a new directory `~/config/git`
> and places the file there.
>
> (simple-service 'git-config
> home-files-service-type
> (list
> `("config/git/config"
> ,(local-file
> (string-append (getenv "HOME")
> "/dotfiles/git/config")))))
>
> It started happening recently, so will try to bisect.
It's not a bug, use ‘`(".config/git/config" ,(local-file ...))’.
I'll close the issue if you don't mind.
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#56610: Guix Home placing dotfiles in wrong directory.
2022-07-17 7:07 bug#56610: Guix Home placing dotfiles in wrong directory Raghav Gururajan via Bug reports for GNU Guix
2022-07-17 8:34 ` Oleg Pykhalov
@ 2022-07-18 6:31 ` Andrew Tropin
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Tropin @ 2022-07-18 6:31 UTC (permalink / raw)
To: Raghav Gururajan, 56610; +Cc: Ludovic Courtès
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
On 2022-07-17 03:07, Raghav Gururajan via Bug reports for wrote:
> Hello Guix,
>
> home-files-service-type is placing configuration files in `~/config/foo`
> instead of `~/.config/foo`.
>
> For example, the following guix-home service should place the git
> configuration in ~/.config/git`. But it creates a new directory
> `~/config/git` and places the file there.
It's intended https://yhetil.org/guix-devel/87v8w2se04.fsf@trop.in/
Updates to the documentation is on the way:
https://yhetil.org/guix-patches/87h74abbn6.fsf@trop.in/
>
> (simple-service 'git-config
> home-files-service-type
In this case, it's better to use home-xdg-configuration-files instead of
home-files.
> (list
> `("config/git/config"
> ,(local-file
> (string-append (getenv "HOME")
Just a tip for finer reproducibility of the configuration: it's better
to avoid using environment variables, files outside of the project
directory and other thing, which make code impure/dependening on global
state.
> "/dotfiles/git/config")))))
>
> It started happening recently, so will try to bisect.
--
Best regards,
Andrew Tropin
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-18 6:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-17 7:07 bug#56610: Guix Home placing dotfiles in wrong directory Raghav Gururajan via Bug reports for GNU Guix
2022-07-17 8:34 ` Oleg Pykhalov
2022-07-18 6:31 ` Andrew Tropin
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).