From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cDAgNRwZRWDrPwAA0tVLHw (envelope-from ) for ; Sun, 07 Mar 2021 18:19:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qNz+MBwZRWAsOwAAbx9fmQ (envelope-from ) for ; Sun, 07 Mar 2021 18:19:08 +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 251AF254E9 for ; Sun, 7 Mar 2021 19:19:08 +0100 (CET) Received: from localhost ([::1]:50262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIxze-0003Jz-3m for larch@yhetil.org; Sun, 07 Mar 2021 13:19:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIxzJ-0003Jr-MA for help-guix@gnu.org; Sun, 07 Mar 2021 13:18:45 -0500 Received: from mx1.dismail.de ([78.46.223.134]:7728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIxzG-0004tw-Uv for help-guix@gnu.org; Sun, 07 Mar 2021 13:18:45 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 42b909f4; Sun, 7 Mar 2021 19:18:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h= mime-version:date:content-type:content-transfer-encoding:from :message-id:subject:to:in-reply-to:references; s=20190914; bh=qs rKT99Dist5EfnqsviFMOQ3/fQSNq4j8SKxYH3dPRQ=; b=r2GraUQWZ+TasZ1b6/ mAgpWE4ygGGDxUstFbJwDur4DLIfSf4n5KSoJtM57TB1Zy4Ay/2ytM54o1APCth3 enwLen2uYYNb2cZGjIgRMJFjnSGIqcAJHCIq7vao/NTMOFYXZmkK9/CfEu0tn3Ni H0Csqq6f1aYQfIHziKCOOo+OcvYjNjU7OPlFtM4bUcxDZ+PjL+tf7nffPaZKSRCI o6iLkQJ11MS4dwX2I654P1sdx1e2dSOIjxf9OdbX622nC77s7CHIF2NhbfUKcwoj mDF4oOiHckQHJcOOrFoo6L2tt01VHfcpqGI9JCjLRj522UGCEhkDLT7qTPtvIayX BWNg== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 80659c0c; Sun, 7 Mar 2021 19:18:37 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 8d7b7df5; Sun, 7 Mar 2021 19:18:37 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id b438f157 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 7 Mar 2021 19:18:36 +0100 (CET) MIME-Version: 1.0 Date: Sun, 07 Mar 2021 18:18:36 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.14.0a From: jbranso@dismail.de Message-ID: <3ef2959a8eb1b5d980796c8f2cb9a549@dismail.de> Subject: Re: How to remove extension 'network-manager-applet' from 'service profile-service-type' To: znavko@disroot.org, "znavko--- via" , help-guix@gnu.org In-Reply-To: <64ac6cd2f2862512bad75801932626c9@disroot.org> References: <64ac6cd2f2862512bad75801932626c9@disroot.org> <87a6rg755s.fsf@dismail.de> 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=1615141148; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=fCpE1Cpt4Y8v+ThyKrvUGmFMmKtMzKE2ihAn1KWJHfE=; b=q3Z3WYeuFFxabCcd1QMZ5+hMvn8v4+rz/4DrwrzyAFgCmMVdmOdPhM1Oso5bWJZrLhAHgF F9h9lskuUO0n944upvEWTlQGTcvNlLzMOcoG9LDWYpMMC2VFo1kuVA/UgZHEAaY7gzp36h VFhAhdd8vUcGLWCCMPKLl3eG9ebjt9aTsQ9dA7cmZL3k1EefhV2zSsurPCgNxsOAoj8au5 IfhfkNhCtRby+m7AmY4XWs8XESUpC9cAVcgNl9q/1rrAQv50chs54ob2LldUesMertOcpc 3rYo/8rPHyO5H+nRQdyXc2s8p6BxBMuAaI1HgRho1F4F/s/CX1TwHs+tn5mZcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615141148; a=rsa-sha256; cv=none; b=FHys3D3V5vTp/r4X6dDkhV6UsVRWqm2qKrd5bvPLETml95O0SfkT9JFOWfbj6UleWmAoDf PPqkEvcrJDXv+bkSmJUrfsT33Vi/FUIn+YYIkgGuiauOgJBCZr1DdFJklXDTAQR8fT8nRD qWVCKe2oh/qBKkQoc5GFUUs5r9nMRl2h6JHc7t1c3nK573Ii06RfR+ysScQIFslKznpTgD zyJohBd58TC9aLjc2GlbCTMo+Mn+9G5TxlyAYwZ2lTFNEPD7Ahx63rEeDbKAId6O3fysre Ad6eOm3LOt8fiNYQEhE3nhNvIaaGYLxBvnNdfyZZvZXVI+0aPY/fAZVlxuBEpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=r2GraUQW; 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-Spam-Score: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=r2GraUQW; 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: 251AF254E9 X-Spam-Score: -3.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9wXmIgSXotkm March 7, 2021 3:56 AM, znavko@disroot.org wrote:=0A=0A> Hello, Joshua!=0A= > No, sorry. network-manager-applet is an extension of=0A> profile-servic= e-type=0A> that is included in xfce-service-type in desctop.scm.=0A> =0A>= Though I remove network-manager from %desktop-services=0A> (I already do= ne it in attached config)=0A> but it pervades into my system=0A> as far a= s network-manager-applet is included =0A> in profile-service-type (that s= part of xfce-service-type) =0A> and network-manager-applet requires netw= ork-manager.=0A> =0A> My trouble is that there are two places where =0A> = 'profile-service-type' is affected:=0A> =0A> 1. in xfce-service-type defi= nition it is just only including=0A> 2. in %desktop-services it is extend= ed with network-manager-applet=0A> =0A> I think I need somehow to remove= =0A> network-manager-applet=0A> from profile-service-type=0A> =0A> How to= do it?=0A> =0A> Here it is 'xfce-desktop-service-type' definition:=0A> h= ttps://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n= 980=0A> =0A> Here netwok-manager-applet is included into profile-service-= type:=0A> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/de= sktop.scm#n1260=0A=0AOh wow! I didn't actually know that was a thing! I= did just find this in the=0Amanual:=0A=0A The =E2=80=98modify-services= =E2=80=99 form provides a handy way to change the=0Aparameters of some of= the services of a list such as =E2=80=98%base-services=E2=80=99=0A(*note= =E2=80=98%base-services=E2=80=99: Base Services.). It evaluates to a li= st of=0Aservices. Of course, you could always use standard list combinat= ors=0Asuch as =E2=80=98map=E2=80=99 and =E2=80=98fold=E2=80=99 to do that= (*note List Library:=0A(guile)SRFI-1.); =E2=80=98modify-services=E2=80= =99 simply provides a more concise form=0Afor this common pattern.=0A=0AS= o it looks like you can use 'map' and 'fold' on %desktop-services to =0Am= anually remove that nm-applet...I'm not entirely certain how to do it=0At= hough...=0A=0AHere's how you can play with that:=0A=0A$ guile=0Aguile com= mand line $ ,use(gnu services desktop)=0Aguile command line $ %desktop-s= ervices ;; this will list the default desktop-services=0Aguile command l= ine $ (map ;; or fold=0A ;; some code=0A = %desktop-services)=0A=0A> =0A> March 6, 2021 5:01 PM, "Joshua= Branson" wrote:=0A> =0A>> znavko--- via writes:=0A>> =0A>>> Hello! I use 'xfce-desktop-service-type' in = my config.scm=0A>>> and xfce service is using 'profile-service-type'.=0A>= >> Everything was ok while this line not appeared in services/desctop.scm= :=0A>>> =0A>>> 1260:=0A>>> (simple-service 'network-manager-applet=0A>>> = profile-service-type=0A>>> (list network-manager-applet))=0A>>> =0A>>> Ho= w can I remove back 'network-manager-applet' extension from profile-servi= ce-type=0A>>> in my config (in attach)?=0A>> =0A>> Something like this mi= ght work:=0A>> =0A>> #+BEGIN_SRC scheme=0A>> (use-service-modules=0A>> ne= tworking)=0A>> =0A>> (define %my-desktop-services=0A>> (remove (lambda (s= ervice)=0A>> (member (service-kind service)=0A>> (list=0A>> network-manag= er-service-type=0A>> )))=0A>> %desktop-services))=0A>> =0A>> (operating-s= ystem=0A>> (services=0A>> (cons* %my-desktop-services)))=0A>> #+END_SRC= =0A>> =0A>>> PS: I dislike networkmanager for it is buggy and slow.=0A>> = =0A>> --=0A>> Joshua Branson (joshuaBPMan in #guix)=0A>> Sent from Emacs = and Gnus=0A>> https://gnucode.me=0A>> https://video.hardlimit.com/account= s/joshua_branson/video-channels=0A>> https://propernaming.org=0A>> "You c= an have whatever you want, as long as you help=0A>> enough other people g= et what they want." - Zig Ziglar