[Top][All Lists]

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

Re: Deleting unnecessary services from %desktop-services

From: znavko
Subject: Re: Deleting unnecessary services from %desktop-services
Date: Thu, 29 Nov 2018 08:09:24 +0100 (CET)

Guile Manual says 'remove' returns elements. But I need to remove elements.

"remove pred lst
remove! pred lst
Return a list containing all elements from lst which do not satisfy the predicate pred.
The elements in the result list have the same order as in lst. The order in which pred
is applied to the list elements is not specified.
remove! is allowed, but not required to modify the structure of the input list."

  (services (cons*  ;;(tor-service)
                    (service postgresql-service-type)
                      (remove (lambda (service)
                        (eq? (service-kind service)
                               avahi-service-type ntp-service-type networking))
                      );end of remove
                        c => (elogind-configuration (handle-lid-switch 'ignore)))
                    );;end of modify desktop-srvices
  ));;end of services

So all of them rests:

# guix system reconfigure /etc/config.scm --substitute-urls=""
shepherd: Service networking has been started.
shepherd: Service ntpd has been started.
shepherd: Service avahi-daemon has been started.

Avahi-daemon rests, and ntpd rests. Sorry, I need to define this in the manual.

reply via email to

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