From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia@riseup.net Subject: Re: Deleting services from %desktop-services in operating system declaration Date: Sat, 23 Jan 2016 14:09:58 +0100 Message-ID: <6dc1e0b7fdda09d86a990c97484b5964@riseup.net> References: <87io2nu95d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMxx4-0003UX-Do for help-guix@gnu.org; Sat, 23 Jan 2016 08:10:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMxx1-0002YH-6Y for help-guix@gnu.org; Sat, 23 Jan 2016 08:10:02 -0500 In-Reply-To: <87io2nu95d.fsf@gnu.org> 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: ludo@gnu.org Cc: help-guix On 2016-01-21 00:24, ludo@gnu.org wrote: > swedebugia@riseup.net skribis: >=20 >> I have trouble getting the syntax right to delete avahi and wicd from >> my config.scm. >=20 > The correct syntax would be: >=20 > (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))) I tried this and got this error: # guix system reconfigure /etc/config/config.scm guix system: error: failed to load '/etc/config/config.scm': /etc/config/config.scm:48:12: In procedure #: /etc/config/config.scm:48:12: In procedure module-lookup: Unbound=20 variable: remove Config here: https://paste.debian.net/367385/ > As David notes, =E2=80=98%desktop-services=E2=80=99 is a list of servic= e objects. To > remove elements from a list, the right procedure is =E2=80=98remove=E2=80= =99 (info > "(guile) SRFI-1 Filtering and Partitioning"). Thanks for the tip! >> The manual does not yet have examples of how to delete one or more >> entries from the %base-services or other lists. >=20 > I=E2=80=99ve added this example in commit 5d94ac5. :) cheers sdb