From: znavko--- via <help-guix@gnu.org>
To: "help-guix" <help-guix@gnu.org>
Subject: How to remove extension from service definition?
Date: Tue, 09 Mar 2021 17:46:16 +0000 [thread overview]
Message-ID: <625a13ff6694092e358b373102a26dbd@disroot.org> (raw)
Hello! I wish to remove network-manager-applet extension from
profile-service-type
which is in the list of extensions of
xfce-desktop-service-type [1] and [2]
And also I want to see the result.
I try it unsuccessfully like this:
$ guile
> (use-modules (gnu) (gnu services) (gnu services desktop) (srfi srfi-1))
> xfce-desktop-service-type
$1 = #<service-type xfce-desktop 7f6c0a4b1000>
> (remove (lambda (service) (eq? (service-kind service) profile-service-type)) xfce-desktop-service-type)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure remove: Wrong type argument in position 2: #<service-type xfce-desktop 7f6c0a4b1000>
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
Also I cannot remove service from %desktop-services asI usually do in config.scm:
> (remove (lambda (service) (member (service-kind service) (list network-manager-service-type bluetooth-service))) %desktop-services)
;;; <stdin>:19:57: warning: possibly unbound variable `network-manager-service-type'
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
error: network-manager-service-type: unbound variable
Can you show me how ot interact with guile ? And how to remove service extensionsand also
how to look at xfce-desktop-service-type contents?
[1] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n1260 (https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n1260)
[2] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n1004 (https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n1004)
next reply other threads:[~2021-03-09 19:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-09 17:46 znavko--- via [this message]
2021-03-19 13:07 ` How to remove extension from service definition? Joshua Branson
2021-03-20 17:57 ` znavko
2021-03-21 1:08 ` jbranso
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=625a13ff6694092e358b373102a26dbd@disroot.org \
--to=help-guix@gnu.org \
--cc=znavko@disroot.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).