Fabio Natali <m...@fabionatali.com> writes:

> Anything that you think I'm doing wrong here? Could it be a limitation
> with 'home-msmtp-service-type', which doesn't seem to indicate any
> mechanism for extend/compose?

Yes, I believe that's your problem. I don't see a reason why
home-msmtp-service-type shouldn't support being extended with additional
accounts. I think it's worth a bug or (even better) a patch.

I'm surprised it's possible to extend a service that doesn't support
extensions. In my opinion we should throw an explicit error instead of
silently ignoring the extension. I reported this as a bug [1].

> More generally, this way of aggregating services together in
> 'my/home-email-service', does it look like a good pattern or should I do
> things any differently?

I find myself doing something similar in my config, although usually at
a smaller scale (not for any particular reason, just how it works out).
I think this is a good idea because your service is contained to one
logical unit—email—and there's likely no reason you'd want to only
include just one of the extensions in an environment.

[1]: https://issues.guix.gnu.org/71887

-- 
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.

Reply via email to