From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Deleting services from %desktop-services in operating system declaration Date: Thu, 21 Jan 2016 00:24:30 +0100 Message-ID: <87io2nu95d.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM27D-0004X4-Gc for help-guix@gnu.org; Wed, 20 Jan 2016 18:24:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM278-0004bW-Gg for help-guix@gnu.org; Wed, 20 Jan 2016 18:24:39 -0500 In-Reply-To: (swedebugia@riseup.net's message of "Wed, 20 Jan 2016 13:42:11 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: swedebugia@riseup.net Cc: help-guix swedebugia@riseup.net skribis: > I have trouble getting the syntax right to delete avahi and wicd from > my config.scm. The correct syntax would be: (operating-system ;; =E2=80=A6 (services (remove (lambda (service) (or (eq? (service-kind service) wicd-service-type) (eq? (service-kind service) avahi-service-type))) %desktop-services))) As David notes, =E2=80=98%desktop-services=E2=80=99 is a list of service ob= jects. To remove elements from a list, the right procedure is =E2=80=98remove=E2=80= =99 (info "(guile) SRFI-1 Filtering and Partitioning"). > The manual does not yet have examples of how to delete one or more > entries from the %base-services or other lists. I=E2=80=99ve added this example in commit 5d94ac5. HTH! Ludo=E2=80=99.