|
From: | Dmitry Nikolaev |
Subject: | Re: Customize %desktop-services. |
Date: | Sun, 15 May 2016 14:24:44 +0300 |
Dmitry Nikolaev (2016-05-12 22:45 +0300) wrote:
[...]
> How do I write something that works like "take %desktop-services, but
> redefine (slim-service) with my definiton of (slim-service ...)"?
You need to remove the default slim service and add your own. You can
use 'service-kind' procedure to check if the service is the one you
need.
See <http://lists.gnu.org/archive/html/help-guix/2016-01/msg00064.html>
and surrounding messages.
So it would look something like this :
(cons (slim-service ...) ; your service
(remove (lambda (service)
(eq? (service-kind service)
slim-service-type))
%desktop-services))
Note that 'remove' is from (srfi srfi-1), 'service-kind' is from (gnu
services), 'slim-service-type' is from (gnu services xorg), so you need
to use all these modules in your config file.
[Prev in Thread] | Current Thread | [Next in Thread] |