From: Efraim Flashner <efraim@flashner.co.il>
To: swedebugia@riseup.net
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Deleting services from %desktop-services in operating system declaration
Date: Wed, 20 Jan 2016 15:28:32 +0200 [thread overview]
Message-ID: <20160120152832.54b32923@debian-netbook> (raw)
In-Reply-To: <fcc6ea3ba9b421a0dac9897b020cdc1b@riseup.net>
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
On Wed, 20 Jan 2016 13:42:11 +0100
swedebugia@riseup.net wrote:
> Hi
>
> I have trouble getting the syntax right to delete avahi and wicd from my
> config.scm.
>
> This did not work (inspecting with the REPL):
> (services (cons* (tor-service) %desktop-services))
> (modify-services (alist-delete
> wicd-service
> %desktop-services))
> (modify-services (alist-delete
> avahi-service
> %desktop-services))
>
> Neither this:
> (services (cons* (tor-service) %desktop-services))
> (modify-services (alist-delete
> wicd-service
> avahi-service
> %desktop-services))
>
> The manual does not yet have examples of how to delete one or more
> entries from the %base-services or other lists.
>
> Help would be appreciated :)
>
> cheers
> swedebugia
>
I haven't written any config.scm files, but if it's like the python packages
this might work:
(services (cons* (tor-service)
(fold alist-delete %desktop-services
'("wicd-service" "avahi-service"))))
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-01-20 13:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 12:42 Deleting services from %desktop-services in operating system declaration swedebugia
2016-01-20 13:28 ` Efraim Flashner [this message]
2016-01-20 14:17 ` Thompson, David
2016-01-20 23:24 ` Ludovic Courtès
2016-01-23 13:09 ` swedebugia
2016-01-23 16:43 ` Alex Kost
2016-01-25 11:20 ` swedebugia
2016-01-25 22:52 ` Alex Kost
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160120152832.54b32923@debian-netbook \
--to=efraim@flashner.co.il \
--cc=help-guix@gnu.org \
--cc=swedebugia@riseup.net \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.