bug#56610: Guix Home placing dotfiles in wrong directory.

2022-07-18 Thread Andrew Tropin
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@trop.in/

Updates to the documentation is on the way:
https://yhetil.org/guix-patches/87h74abbn6@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


signature.asc
Description: PGP signature


bug#56610: Guix Home placing dotfiles in wrong directory.

2022-07-17 Thread Oleg Pykhalov
Hi,

Raghav Gururajan via Bug reports for GNU Guix  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.


signature.asc
Description: PGP signature


bug#56610: Guix Home placing dotfiles in wrong directory.

2022-07-17 Thread Raghav Gururajan via Bug reports for GNU Guix

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.


OpenPGP_signature
Description: OpenPGP digital signature