[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting services from %desktop-services in operating system declara
Re: Deleting services from %desktop-services in operating system declaration
Sat, 23 Jan 2016 14:09:58 +0100
On 2016-01-21 00:24, address@hidden wrote:
I have trouble getting the syntax right to delete avahi and wicd from
The correct syntax would be:
(services (remove (lambda (service)
(or (eq? (service-kind service)
(eq? (service-kind service)
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 #<procedure a7c3530 ()>:
/etc/config/config.scm:48:12: In procedure module-lookup: Unbound
Config here: https://paste.debian.net/367385/
As David notes, ‘%desktop-services’ is a list of service objects. To
remove elements from a list, the right procedure is ‘remove’ (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.
I’ve added this example in commit 5d94ac5.