help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting link file permission in home-files-service-type


From: Gary Johnson
Subject: Re: Setting link file permission in home-files-service-type
Date: Tue, 21 Mar 2023 10:15:40 -0400

c4droid <c4droid@foxmail.com> 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

[Prev in Thread] Current Thread [Next in Thread]