From: "Simen Endsjø" <contact@simendsjo.me>
To: help-guix@gnu.org
Subject: Extending home-gpg-agent-service-type from a service-type doesn't do anything?
Date: Wed, 08 Jan 2025 23:23:26 +0100 [thread overview]
Message-ID: <6d997da8-c8fc-44c6-b401-4cd8e3fc988b@app.fastmail.com> (raw)
I'm probably doing something wrong, but I'm having problems using
`home-gpg-agent-service-type' from a service. It works fine inside an
`home-environment', but not within a service type.
So this works fine:
,----
| (home-environment
| (services
| (list
| (service home-gpg-agent-service-type
| (home-gpg-agent-configuration
| (pinentry-program
| (file-append sijo-pinentry "/bin/sijo-pinentry"))
| (extra-content "allow-loopback-pinentry"))))))
|
`----
But when I move this into a new service, it doesn't seem to do anything,
and only the default configuration is used.
,----
| (home-environment
| (services
| (list
| (service sijo-gpg-service-type))))
|
| (define-public sijo-gpg-service-type
| (service-type
| (name 'sijo-gpg-service)
| (extensions
| (list
| (service-extension home-profile-service-type
| (lambda (config)
| (list sijo-pinentry)))
| ;; This doesn't actually see mto do anything
| (service-extension home-gpg-agent-service-type
| (lambda (config)
| (home-gpg-agent-configuration
| (pinentry-program
| (file-append sijo-pinentry "/bin/sijo-pinentry"))
| (extra-content "allow-loopback-pinentry"))))))
| (default-value #f)
| (description "")))
`----
next reply other threads:[~2025-01-08 22:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 22:23 Simen Endsjø [this message]
2025-01-11 0:15 ` Extending home-gpg-agent-service-type from a service-type doesn't do anything? Tomas Volf
2025-01-15 15:48 ` Richard Sent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6d997da8-c8fc-44c6-b401-4cd8e3fc988b@app.fastmail.com \
--to=contact@simendsjo.me \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.