all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Extending home-gpg-agent-service-type from a service-type doesn't do anything?
@ 2025-01-08 22:23 Simen Endsjø
  0 siblings, 0 replies; only message in thread
From: Simen Endsjø @ 2025-01-08 22:23 UTC (permalink / raw)
  To: help-guix

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 "")))
`----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-08 22:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08 22:23 Extending home-gpg-agent-service-type from a service-type doesn't do anything? Simen Endsjø

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.