From: Alex Kost <alezost@gmail.com>
To: Dmitry Nikolaev <cameltheman@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Customize %desktop-services.
Date: Fri, 13 May 2016 23:26:20 +0300 [thread overview]
Message-ID: <87lh3d7lhv.fsf@gmail.com> (raw)
In-Reply-To: <CAH3JXcGw+n0Zsqy0cxiXZdyqpGF0HC+AN7rp0y1fKnuzn11ipQ@mail.gmail.com> (Dmitry Nikolaev's message of "Thu, 12 May 2016 22:45:28 +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.
--
Alex
next prev parent reply other threads:[~2016-05-13 20:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-12 19:45 Customize %desktop-services Dmitry Nikolaev
2016-05-13 20:26 ` Alex Kost [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-05-15 11:24 Dmitry Nikolaev
2016-05-16 20:20 ` Alex Kost
2016-05-24 20:42 Dmitry Nikolaev
2016-05-25 8:20 ` Alex Kost
2016-06-01 13:14 Dmitry Nikolaev
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=87lh3d7lhv.fsf@gmail.com \
--to=alezost@gmail.com \
--cc=cameltheman@gmail.com \
--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).