From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +GdpEyyiVGCECwAA0tVLHw (envelope-from ) for ; Fri, 19 Mar 2021 13:07:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6PtNDyyiVGC0fAAA1q6Kng (envelope-from ) for ; Fri, 19 Mar 2021 13:07:56 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8136C2CAF9 for ; Fri, 19 Mar 2021 14:07:55 +0100 (CET) Received: from localhost ([::1]:57748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNEr3-0005o9-Uv for larch@yhetil.org; Fri, 19 Mar 2021 09:07:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNEqd-0005mg-LJ for help-guix@gnu.org; Fri, 19 Mar 2021 09:07:27 -0400 Received: from mx1.dismail.de ([78.46.223.134]:46904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNEqb-0000qv-9f for help-guix@gnu.org; Fri, 19 Mar 2021 09:07:27 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 8681fb62; Fri, 19 Mar 2021 14:07:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=20190914; bh=/4Yjv5S7/UuJ4YIuAux0UAs70pf4WwmYTs m3ScGV1VE=; b=LcpyfzmHgatG7EKe+lzz+2aE8uYaHgcy2yeP3oCkIKjnnZDZme z0Ducwh9NHVgKVFFH3EA2gC3hstU0kiZGlgsosDPddJko+SEnwKypptSgiuIn0xe +sLypohSytzzfNbES+SPYtWXPE4Hf2gxwm9X90z977onr43d2T9chlsu/CEErTyP suOEbodstXSbJLP9e7WpT1KllSrLOqbN2byRYzuwYs7/vp7wlXayVyYwgneI4tTd mOF6lggTsjCcJVy+Qa+BCh/sFcO+Mjmz7XIjQzwdIWlP17U5ddSdoc5bpLFaFsol WLJLwsoAYQKWqr53VGvTY0f+wrnYdDlGiOBg== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id c289682a; Fri, 19 Mar 2021 14:07:20 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 789aa922; Fri, 19 Mar 2021 14:07:19 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id bfced861 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 19 Mar 2021 14:07:18 +0100 (CET) From: Joshua Branson To: znavko--- via Cc: znavko@disroot.org Subject: Re: How to remove extension from service definition? References: <625a13ff6694092e358b373102a26dbd@disroot.org> Mail-Followup-To: znavko--- via , znavko@disroot.org Date: Fri, 19 Mar 2021 09:07:00 -0400 In-Reply-To: <625a13ff6694092e358b373102a26dbd@disroot.org> (znavko's message of "Tue, 09 Mar 2021 17:46:16 +0000") Message-ID: <87tup7pa17.fsf@dismail.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616159275; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OgyXUCxBfrp1/UIkgTpryL/AdqtWNYdtBix6sQhFbFk=; b=kaSH7saH6dFPJtsmu+5AroLCJhIje0lQdaZ8uP/oW0vsfx7I2dBmvCryzPk0J75UZEfWG+ 9agi60E1T/5lx770iyq5AgJyjO3uXZrKwTMqj5g+q/hdME57wNh5uEuxGgj1isoKraDe20 mNKHxbyRgrlwfkCsHRY5zpr8n8I+/k334Muc0ZBTKD/CmxWPqy2XOBleZWgZuCxOjQXlY2 uCqBGOvX1Z9UEN0MEE56a/96PS1RyoXarMOogp+WLfX71TPtAevJjjkssPhnk92ABl0MLJ Kbiyldsesdrw76QJI4ixbvbPWwl1KFcCHM2qCfzsBduO8IKqaPjWfIC8/wO+Yw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616159275; a=rsa-sha256; cv=none; b=FgXBgubL75vRS9q0NwBFbl8aQ/xpwwtZ6d8lMxmP+m28RcAE6nsRA+XHZvaXaJfYnVH43D C4CELqw/N89rJL2Yku7Vu4EckyGdEb0/5MreM2i1n2iHzjGYdsV+sEG62ykRzC/olWFY1w 7flcxYzC7pb5kZBr75SzLO733MYlzlHmlfzEgWi92IQOUyH+2MgT2FTTmOmKMRTjXevp4o yBpfAoeG6nzmg5o8wwqAfPhmcnEwa0jO2uaH4TfKefQUZEhkbL24qO+PCWu8gQAkoSv2tr ZORMjpqT3zMhyV2LYq7VrJikhhqod2Z9eo/iyIkZvwDF9DMFr0kznDcSXxbEEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=LcpyfzmH; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=LcpyfzmH; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 8136C2CAF9 X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: Q3k5k3zTiJ70 znavko--- via writes: > 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 = # >> (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: # (remove (lambda (service) (eq? (service-kind service) profile-service-type)) %desktop-services) "works for me." Though you get a HUGE output. I didn't check the output to make sure it was removed. Also just removing all profile-service-type(s) might be a REALLY BAD idea. I wouldn't know exactly why it would be bad, but it might remove lots of system services. > > 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) > ;;; :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? So the problem with it not knowing that 'network-manager-service-type' is a variable is because you have not included the file that specifies that network-manager-service-type is a variable. So how do we discover what file has network-manager-service-type defined as a variable? $ guix system search network-manager name: network-manager location: gnu/services/networking.scm:1120:4 extends: shepherd-root dbus polkit account activate session-environment profile shepherdnames: networking description: Run NetworkManager (https://wiki.gnome.org/Projects/NetworkManager), a network management daemon that aims to + simplify wired and wireless networking. relevance: 15 You can see that it's located in gnu/services/networking.scm. Where is bluetooth defined? $ guix system search bluetooth name: bluetooth location: gnu/services/desktop.scm:467:2 extends: dbus udev etc shepherd-root shepherdnames: bluetooth description: Run the `bluetoothd' daemon, which manages all the Bluetooth devices and provides a number of D-Bus interfaces. relevance: 19 Ahh. gnu/services/desktop.scm. so $ guile scheme@(guile-user) > ,use(gnu services networking) scheme@(guile-user) > ,use(gnu services desktop) scheme@(guile-user) > (remove (lambda (service) (member (service-kind service) (list network-manager-service-type bluetooth-service))) %desktop-services) Best of luck! -- Joshua Branson (joshuaBPMan in #guix) Sent from Emacs and Gnus https://gnucode.me https://video.hardlimit.com/accounts/joshua_branson/video-channels https://propernaming.org "You can have whatever you want, as long as you help enough other people get what they want." - Zig Ziglar