From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Deleting services from %desktop-services in operating system declaration Date: Tue, 26 Jan 2016 01:52:54 +0300 Message-ID: <87mvrt6zll.fsf@gmail.com> References: <87io2nu95d.fsf@gnu.org> <6dc1e0b7fdda09d86a990c97484b5964@riseup.net> <87zivw6ycr.fsf@gmail.com> 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]:39713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNq0K-000856-8a for help-guix@gnu.org; Mon, 25 Jan 2016 17:53:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNq0G-0004jU-0S for help-guix@gnu.org; Mon, 25 Jan 2016 17:53:00 -0500 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:34614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNq0F-0004jQ-Nv for help-guix@gnu.org; Mon, 25 Jan 2016 17:52:55 -0500 Received: by mail-lf0-x22f.google.com with SMTP id 17so94387358lfz.1 for ; Mon, 25 Jan 2016 14:52:55 -0800 (PST) In-Reply-To: (swedebugia@riseup.net's message of "Mon, 25 Jan 2016 12:20:02 +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 (2016-01-25 14:20 +0300) wrote: > On 2016-01-23 17:43, Alex Kost wrote: [...] >> Note: if you want to remove wicd service, you also need to remove ntp >> service, otherwise you'll get: >> >> guix system: error: service 'ntpd' requires 'networking', which is >> undefined > > I got this error a couple of times. Thanks for the explanation - this > was really helpful in getting my config to work properly. > > I decided to keep wicd after all and just removed avahi. If you don't like wicd, you can use another service that provides 'networking': there are 'dhcp-client-service' and 'static-networking-service' services for this purpose. So if you want to remove wicd and to use dhcp service instead, you can do it like this: (services (cons* (tor-service) (dhcp-client-service) (remove (lambda (service) (or (eq? (service-kind service) (@@ (gnu services networking) wicd-service-type)) (eq? (service-kind service) avahi-service-type))) %desktop-services))) > It seems that avahi is also not exported. Actually 'avahi-service-type' is exported=C2=B9, so you can use it instead = of (@@ (gnu services avahi) avahi-service-type). > The full config with my comments is found here: > https://paste.debian.net/368031/ > (use-modules (gnu) > (gnu system nss) > (srfi srfi-1) ; Needed to use 'remove' below > (gnu services avahi) ; Needed to remove avahi > (gnu services networking)) ; Needed to add tor-service > (use-service-modules desktop) > (use-package-modules xfce ratpoison certs) Just in case you didn't know: (use-service-modules desktop) is exactly the same as (use-modules (gnu services desktop)) So you can use: (use-service-modules desktop avahi networking) instead of specifying (gnu services avahi) and (gnu services networking) in 'use-modules', if you like it. > I'm effectively learning Scheme/Guile while trying to hack GuixSD and I > like it :D I like Guile and Guix too! http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/avahi.scm#n30 --=20 Alex