Subject: Re: [bug#54293] [WIP] home: Add home-git-service-type

From: Maxime Devos <[email-masked]>
Date: Mon, 07 Mar 2022 19:11:16 +0100

宋文武 schreef op ma 07-03-2022 om 22:51 [+0800]:
> Hello, with:
> --8<---------------cut here---------------start------------->8---
> (service home-git-service-type
>  (home-git-configuration
>   (options '((user (name "foo")
>                    (email "[email-masked]")))))) [...]

How about providing an option for passwords?  E.g.,

 (home-git-configuration
   (user (git-user-info
           (name "Foobar")
           (e-mail "Foobar <[email-masked]>")
           (signing-key "some PGP fingerprint)))
   (secrets-file "/home/foo/the-password")
   (smtp (git-smtp-configuration
           #;(password "12345") ; not recommended, use 'secrets-file' instead
           ...))

(with some appropriate documentation)

secrets-file (not interned in the store):
  
  # I don't remember the exact option name
  smtp.password = Foobaz

the produced .gitconfig would include a line

  [include]
    path = /home/foo/the-password