c4droid <[email protected]> writes:

> I'm changing my mailing workflow from fetchmail + procmail + msmtp +
> mutt to fdm + msmtp + mutt, configuration file is already prepared, the
> fdm and msmtp configuration file need 600 permission, guix home
> home-files-service-type give 644 default, have workaround for when
> symlinking change permission for target file.
>
> My home.scm configuration cut:
> ``` scheme
> (home-environment
>  (services
>   (list
>    (service home-files-service-type
>             `((".fdm.conf" ,(local-file "dotfiles/fdm.conf"))
>               (".msmtprc" ,(local-file "dotfiles/msmtprc")))))))
> ```

As mentioned on another thread recently, you need to pass the
`#:recursive? #t` option to `local-file` if you want to preserve your
file permissions.

``` scheme
(home-environment
 (services
  (list
   (service home-files-service-type
            `((".fdm.conf" ,(local-file "dotfiles/fdm.conf" #:recursive? #t))
              (".msmtprc" ,(local-file "dotfiles/msmtprc" #:recursive? #t)))))))
```

Happy hacking!
  Gary

-- 
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Reply via email to