help-guix
[Top][All Lists]
Advanced

[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: Sun, 2 Dec 2018 17:09:50 +0100 (CET)

Hello, Ricardo Wurmus! With your responses I actually could delete avahi and ntp services. Thank you!

But the 'networking' service is quite more difficult to configure. Please, what is wrong here:

  (packages (cons* nss-certs         ;for HTTPS access
                   gvfs              ;for user mounts
           wpa-supplicant
           isc-dhcp
                   %base-packages))

  (services (cons* 
                    (service postgresql-service-type)
                    (xfce-desktop-service)
                    (modify-services     
                      ;;(remove (lambda (service)
                      ;;  (eq? (service-kind service)
                      ;;    wpa-supplicant-service-type))
                        (remove (lambda (service)
                          (eq? (service-kind service)
                            static-networking-service-type))
                          (remove (lambda (service)
                            (eq? (service-kind service)
                              ntp-service-type))
                            (remove (lambda (service)
                              (eq? (service-kind service)
                                avahi-service-type))
                              %desktop-services
                            );end of remove avahi
                          );end of remove2 ntp
                        );end of remove3 networking
                      ;);end of remove4 wpa-supplicant
                      (elogind-service-type
                        c => (elogind-configuration (handle-lid-switch 'ignore)))
                    );;end of modify desktop-services
  ));;end of services


# guix system reconfigure /etc/config.scm
guix system: error: service 'networking' requires 'wpa-supplicant', which is not provided by any service

# guix system reconfigure /etc/config.scm
guix system: error: service 'wpa-supplicant' requires 'loopback', which is not provided by any service


There is no difference if I type  'remove wpa-supplicant' first and then networking or vice versa: first networking and then wpa-supplicant. There are errors because of requirements, that I do not know how to bypass.

How to delete networking and wpa-supplicant services?

The problem is that  I am running wpa-supplicant manually now, while I do not know how to configure its service to use my wpa.conf. And I want to have package wpa-supplicant but no service that really appears in boot process and take 2-3 seconds waiting.

znavko.

Dec 1, 2018, 11:07 PM by address@hidden:

address@hidden writes:
(remove! (lambda (service)
(eq? (service-kind service)
avahi-service-type ntp-service-type ntpd networking))
%desktop-services
)

This doesn’t work as you are asking if (service-kind service) is the
same as “avahi-service-type” AND “ntp-service-type” AND “ntpd” AND
“networking”. This will never be true. Use “member” instead.

(Also, you should probably use “remove” instead of “remove!”.)

--
Ricardo


reply via email to

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