From: Tomas Volf <wolf@wolfsden.cz>
To: help-guix@gnu.org
Subject: How to add service(s) from a service?
Date: Sun, 15 Oct 2023 00:57:29 +0200 [thread overview]
Message-ID: <ZSsc2ZG63IViEd7M@ws> (raw)
[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]
Hi Guix,
I know that I can add services into my Guix configuration using this pattern:
(operating-system
...
(services (cons* SERVICE
%base-services)))
And for packages I can use this pattern:
(operating-system
...
(packages (cons* PACKAGE
%base-packages)))
Now, I would like to be able to do both from a service. I now that the packages
I do using the profile-service-type, like this:
(define my-service-service-type
(service-type
(name 'my-service)
(description "This is my service.")
(extensions
(list (service-extension profile-service-type (list PACKAGE))))
(default-value (my-service-configuration))))
However, I am unsure how to do this for services. Would anyone have any ideas
how to do this?
Thank you and have a nice day,
Tomas Volf
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2023-10-14 22:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-14 22:57 Tomas Volf [this message]
2023-10-15 15:32 ` How to add service(s) from a service? paul
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZSsc2ZG63IViEd7M@ws \
--to=wolf@wolfsden.cz \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).