[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to add service(s) from a service?
From: |
Tomas Volf |
Subject: |
How to add service(s) from a service? |
Date: |
Sun, 15 Oct 2023 00:57:29 +0200 |
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.
signature.asc
Description: PGP signature
- How to add service(s) from a service?,
Tomas Volf <=