From: <znavko@tutanota.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: Deleting unnecessary services from %desktop-services
Date: Sun, 2 Dec 2018 17:09:50 +0100 (CET) [thread overview]
Message-ID: <LSjfghH--3-1@tutanota.com> (raw)
In-Reply-To: <87efb1huyu.fsf@elephly.net>
[-- Attachment #1: Type: text/plain, Size: 3787 bytes --]
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 rekado@elephly.net:
>
> znavko@tutanota.com <mailto:znavko@tutanota.com>> 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
>
[-- Attachment #2: Type: text/html, Size: 8560 bytes --]
prev parent reply other threads:[~2018-12-02 16:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-27 19:38 Deleting unnecessary services from %desktop-services znavko
2018-11-27 22:46 ` Pierre Neidhardt
2018-11-29 7:09 ` znavko
2018-11-30 2:55 ` Ricardo Wurmus
2018-12-01 5:06 ` znavko
2018-12-01 13:47 ` Joshua Branson
2018-12-01 15:28 ` znavko
2018-12-01 20:07 ` Ricardo Wurmus
2018-12-02 16:09 ` znavko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=LSjfghH--3-1@tutanota.com \
--to=znavko@tutanota.com \
--cc=help-guix@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.