Subject: [bug#68857] [PATCH] gnu: home: dotfiles: Avoid creating extra directory in $HOME.

From: Sergey Trofimov <[email-masked]>
Date: Fri, 16 Feb 2024 19:57:24 +0100

Hi Paul,

paul <[email-masked]> writes:

> Hi everyone,
>
> thank you for your help and comments so far. I have a proposal 
> that should:
>
> - solve https://issues.guix.gnu.org/68848
>
> - allow for both plain and GNU Stow's layouts
>
> - for GNU Stow layouts, allows to select a subset of application 
> dotfiles to be
>   provisioned in the user's home directory. Please Sergey let me 
>   know if this
>  covers your use case .
>

My dotfiles tree is (relative to ~/.dotfiles):
./guix/home.scm
./backup/.config/..
./android/.config/..
...

It works with such config:

--8<---------------cut here---------------start------------->8---
(service home-dotfiles-service-type
    (home-dotfiles-configuration
      (directories
        (list
          (home-dotfiles-stow-directory
            (name "..")
            (applications
            '("backup"
              "android"
              "email"
              "xsession"
              "git"
              "qutebrowser"
              "desktop")))))))
--8<---------------cut here---------------end--------------->8---

`name` is in fact a relative path, so this field should be 
renamed.
`applications` are called `PACKAGES` in `stow` man page, so I'd 
rename it to match.