help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting services from %desktop-services in operating system declara


From: Efraim Flashner
Subject: Re: Deleting services from %desktop-services in operating system declaration
Date: Wed, 20 Jan 2016 15:28:32 +0200

On Wed, 20 Jan 2016 13:42:11 +0100
address@hidden 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   <address@hidden>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: pgpGaZx3K7r9B.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]