From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Features of installing package that works as service Date: Tue, 27 Nov 2018 10:38:22 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_95499_1995642828.1543311503157" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRZwq-0002OJ-Us for help-guix@gnu.org; Tue, 27 Nov 2018 04:46:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRZwm-0007S9-C4 for help-guix@gnu.org; Tue, 27 Nov 2018 04:46:28 -0500 Received: from w1.tutanota.de ([81.3.6.162]:58446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRZwl-0007QK-Ij for help-guix@gnu.org; Tue, 27 Nov 2018 04:46:24 -0500 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 28089FA0F57 for ; Tue, 27 Nov 2018 09:38:23 +0000 (UTC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Help Guix ------=_Part_95499_1995642828.1543311503157 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, Guix Help! I think GuixSD is cute, but manual is so incomprehensible https://www.gnu.org/software/guix/manual/en/guix.html I want to clear all possible options when I install packages that work as services. For example, can get postgresql by typing by non-root user `$ guix package -i postgresql` and run it? How to run it? Can I install postgresql and run it only when I need? Do I need install it only from defining service in config.scm and typing `# guix system reconfigure config.scm` ? Manual "6.2.15 Defining Services" has lot of variables and I do not know where to find them definitions. ------=_Part_95499_1995642828.1543311503157 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Hello, Guix Help! I think GuixSD is cute, but manual is so incomprehensible https://www.gnu.org/software/guix/manual/en/guix.html

I want to clear all possible options when I install packages that work as services.
For example, can get postgresql by typing by non-root user `$ guix package -i postgresql` and run it? How to run it?

Can I install postgresql and run it only when I need?

Do I need install it only from defining service in config.scm and typing `# guix system reconfigure config.scm` ?

Manual "6.2.15 Defining Services" has lot of variables and I do not k now where to find them definitions.
------=_Part_95499_1995642828.1543311503157-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Branson Subject: Re: Features of installing package that works as service Date: Tue, 27 Nov 2018 09:25:51 -0500 Message-ID: <87a7luwqa8.fsf@fastmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gReIu-0007rV-7F for help-guix@gnu.org; Tue, 27 Nov 2018 09:25:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gReIp-00074o-Av for help-guix@gnu.org; Tue, 27 Nov 2018 09:25:32 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55577) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gReIp-0006ob-0D for help-guix@gnu.org; Tue, 27 Nov 2018 09:25:27 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 65F32D9D for ; Tue, 27 Nov 2018 09:25:24 -0500 (EST) Received: from dobby (unknown [72.12.220.132]) by mail.messagingengine.com (Postfix) with ESMTPA id 8BDDF102F5 for ; Tue, 27 Nov 2018 09:25:23 -0500 (EST) In-Reply-To: (znavko's message of "Tue, 27 Nov 2018 10:38:22 +0100 (CET)") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org writes: > Hello, Guix Help! I think GuixSD is cute, but manual is so incomprehensible https://www.gnu.org/software/guix/manual/en/guix.html Have you read the entire manual? I know I haven't. Before your complain that the manual is difficult to understand, be sure that you read all of it. There's lots of good details in the manual. :) > > I want to clear all possible options when I install packages that work as services. > For example, can get postgresql by typing by non-root user `$ guix package -i postgresql` and run it? How to run it? If you intend to run it yourself, you can run that command. But you don't want to actually run guix package -i postgresql. > > Can I install postgresql and run it only when I need? > > Do I need install it only from defining service in config.scm and typing `# guix system reconfigure config.scm` ? Basically yes. https://www.gnu.org/software/guix/manual/en/guix.html#Database-Services The (gnu services databases) module provides the following services. So your config would look a little like: (use-modules (gnu services database)) ... ;; your postgresql service definition here. ;; I think the below is correct, but I'm not certain. (services (cons* (service postgresql-service-type) %base-services )) > > Manual "6.2.15 Defining Services" has lot of variables and I do not know where to find them definitions. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tonton Subject: Re: Features of installing package that works as service Date: Tue, 27 Nov 2018 18:04:43 +0100 Message-ID: <20181127180443.60aa09f8@merlin.browniehive.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRgnH-0006sx-Ny for help-guix@gnu.org; Tue, 27 Nov 2018 12:05:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRgn5-0002qq-Dh for help-guix@gnu.org; Tue, 27 Nov 2018 12:04:57 -0500 Received: from mx1.riseup.net ([198.252.153.129]:60656) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gRgn3-0002pi-Qm for help-guix@gnu.org; Tue, 27 Nov 2018 12:04:51 -0500 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@tutanota.com Cc: help-guix@gnu.org Welcome to Guix! On Tue, 27 Nov 2018 10:38:22 +0100 (CET) wrote: > Hello, Guix Help! I think GuixSD is cute, but manual is so incomprehensible > https://www.gnu.org/software/guix/manual/en/guix.html > Parts of the manual may be a bit difficult, but I think we're trying to make it good and understandable for everyone. If you have suggestions I encourage you to send them in an email, or even better as a documentation patch. > > I want to clear all possible options when I install packages that work as > services. For example, can get postgresql by typing by non-root user `$ > guix package -i postgresql` and run it? How to run it? > > Can I install postgresql and run it only when I need? Yes and yes. You can add it as a service in your config.scm and then stop and start it when needed. Or you can run it as a package like you describe here. > > Do I need install it only from defining service in config.scm and typing `# > guix system reconfigure config.scm` ? > > Manual "6.2.15 Defining Services" has lot of variables and I do not know > where to find them definitions. Defining packages and services is next level (it's not very difficult, but not something you should need for regular systems). Look at the sections under "System Configuration" sepcifically the pages under Services. HTH Tonton From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: Features of installing package that works as service Date: Wed, 28 Nov 2018 07:31:32 +0100 (CET) Message-ID: References: < (znavko's message of "Tue, 27 Nov 2018 10:38:22 +0100 (CET)")> <87a7luwqa8.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_128457_1149371692.1543386692066" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRtXJ-00018H-4y for help-guix@gnu.org; Wed, 28 Nov 2018 01:41:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRtXE-0006RC-IH for help-guix@gnu.org; Wed, 28 Nov 2018 01:41:25 -0500 Received: from w1.tutanota.de ([81.3.6.162]:60042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRtXE-0006R0-5S for help-guix@gnu.org; Wed, 28 Nov 2018 01:41:20 -0500 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 11A7FFBF1A1 for ; Wed, 28 Nov 2018 06:31:32 +0000 (UTC) In-Reply-To: <87a7luwqa8.fsf@fastmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" Cc: Help Guix ------=_Part_128457_1149371692.1543386692066 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you, Joshua Branson! Your code helped me a bit (use-modules=C2=A0 (gnu services databases) ) (services (cons*=C2=A0 (service postgresql-service-type) %desktop-services)) After `guix reconfigure /etc/config.scm` and reboot postgresql server is ru= nning: # herd status | grep postgre =C2=A0+ postgres The only one change I want to do. Please, how to disable auto-start of post= gresql? I need it sometimes and want to start it manually only. I think the= re should be some guile function like '(service postgresql-service-type (co= nfig no-autostart))', but qwant search does not give the answer.=20 I've read 'start' and 'stop' options here https://www.gnu.org/software/guix= /manual/en/guix.html#Shepherd-Services =20 and here https://www.gnu.org/software/shepherd/manual/shepherd.html#index-Configurat= ion-file =C2=A0and tried to find out here http://git.savannah.gnu.org/cgit/guix.git/= tree/gnu/services/databases.scm But I did not get the answer for those 10 minutes I've spend there. I tried with no success: (service postgresql-service-type (unstartable '()) ) (service postgresql-service-type (config (unstartable '()) )(service postgr= esql-service-type (let (unstartable '())) ) Please, how to do this? ------=_Part_128457_1149371692.1543386692066 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you, Joshua Branson!
Your code helped me a bit

(use-modules  (gnu services databases)= )
(services (cons*  (service postgresql-service-type)=
%desktop-services))

After= `guix reconfigure /etc/config.scm` and reboot postgresql server is running= :
# herd status | grep postgre
 + postgres
<= /div>

The only one change I want to do. Please, how to disable auto-start of=20 postgresql? I need it sometimes and want to start it manually only. I=20 think there should be some guile function like '(service=20 postgresql-service-type (config no-autostart))', but qwant search does=20 not give the answer.
and here
 and tried to find ou= t here http://git.= savannah.gnu.org/cgit/guix.git/tree/gnu/services/databases.scm
But I did not get the answer for those 10 minutes I've spend there.=
I tried with no success:
(service postgres= ql-service-type (unstartable '()) )
(service postgresql-service-type (= config (unstartable '()) )
(service postgresql-service-type (let = (unstartable '())) )

Please, how to do thi= s?

------=_Part_128457_1149371692.1543386692066-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: Features of installing package that works as service Date: Wed, 28 Nov 2018 08:05:17 +0100 (CET) Message-ID: References: < (znavko's message of "Tue, 27 Nov 2018 10:38:22 +0100 (CET)")> <87a7luwqa8.fsf@fastmail.com> <<87a7luwqa8.fsf@fastmail.com>> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_129106_470001302.1543388717519" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRu0L-0005kV-2f for help-guix@gnu.org; Wed, 28 Nov 2018 02:11:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRu0H-0007ua-QU for help-guix@gnu.org; Wed, 28 Nov 2018 02:11:25 -0500 Received: from w1.tutanota.de ([81.3.6.162]:60934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRu0G-0007pn-2d for help-guix@gnu.org; Wed, 28 Nov 2018 02:11:21 -0500 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 8076EFA0D57 for ; Wed, 28 Nov 2018 07:05:17 +0000 (UTC) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" Cc: Help Guix ------=_Part_129106_470001302.1543388717519 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, Guix Help! guix understands this config, but still I have avahi-daem= on and ntpd services. They are not started, I want delete them at all. How = to do that? ;;this is znavko's cute config (use-modules (gnu) (gnu system nss) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services desktop) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (s= rfi srfi-1) ;;for remove function =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services networking) ;;for remove ntp =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services avahi) ;;for remove avahi =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services xorg) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services databases);;for postgres ) (use-service-modules desktop) (use-package-modules certs gnome) (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale= "en_US.utf8") =C2=A0 (bootloader (bootloader-configuration =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (bootloader grub-bootloader) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (target "/dev/sda"))) =C2=A0 (file-systems (cons (file-system =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (device "/d= ev/sda1") (mount-point "/") (type "ext4")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 %base-file-systems)) =C2=A0 (swap-devices '("/dev/sda2")) =C2=A0 (users (cons* (user-account (name "bob") (group "users") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (supplementary-groups '("wheel" "netdev" "audio" "video")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (home-directory "/home/bob")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (user-account (name "alice") (group "users") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (supplementary-groups '("wheel" "netdev" "audio" "video")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (home-directory "/home/alice")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (user-account (name "mom") (group "users") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (supplementary-groups '("wheel" "netdev" "audio" "video")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (home-directory "/home/mom")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 %base-user-accounts)) =C2=A0 ;; This is where we specify system-wide packages. =C2=A0 (packages (cons* nss-certs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 ;for HTTPS access =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gvfs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;for user mounts =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 %base-packages)) =C2=A0 (services (cons*=C2=A0 ;;(tor-service) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (service postgresql-service-type) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (xfce-desktop-service) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (modify-services=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=20 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (remove (la= mbda (service) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (eq? (service-kind service)=20 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ntp-service-type avahi-service)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 %desktop-services =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 );end of re= move =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (elogind-se= rvice-type =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 c =3D> (elogind-configuration =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (handle-lid-switch 'ignore))) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 );;end of modify desktop-srvices =C2=A0 ));;end of services =C2=A0 ;; Allow resolution of '.local' host names with mDNS. =C2=A0 (name-service-switch %mdns-host-lookup-nss)) =C2=A0=20 # herd status Started: ... =C2=A0+ xorg-server Stopped: =C2=A0- avahi-daemon =C2=A0- networking =C2=A0- ntpd =C2=A0- swap-/dev/sda2 =C2=A0- term-auto =C2=A0- user-homes =C2=A0- wpa-supplicant =C2=A0=20 How delete at all avahi-daemon and ntpd? ------=_Part_129106_470001302.1543388717519 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello, Guix Help! guix understands this config, but still I have avahi= -daemon and ntpd services. They are not started, I want delete them at all.= How to do that?

;;this is znavko's cute config=

(use-modules (gnu) (gnu system nss)
   &nbs= p;         (gnu services desktop)            = ; (srfi srfi-1) ;;for remove function
     &n= bsp;       (gnu services networking) ;;for re= move ntp
          &= nbsp;  (gnu services avahi) ;;for remove avahi
   =           (gnu services xorg)<= br />           &nbs= p; (gnu services databases);;for postgres
)
(use-service-modules = desktop)
(use-package-modules certs gnome)

(operating-syste= m (host-name "antelope") (timezone "Europe/Moscow") (lo= cale "en_US.utf8")
  (bootloader (bootloader-configurat= ion
           =      (bootloader grub-bootloader)
  &nbs= p;             = (target "/dev/sda")))
  (file-systems (cons (file-syste= m
           &n= bsp;            (dev= ice "/dev/sda1") (mount-point "/") (type "ext4&quo= t;))
           = ;           %base-file-sy= stems))
  (swap-devices '("/dev/sda2"))

&nbs= p; (users (cons* (user-account (name "bob") (group "users&qu= ot;)
           = ;     (supplementary-groups '("wheel" "n= etdev" "audio" "video"))
   &n= bsp;            (hom= e-directory "/home/bob"))
     &nbs= p;          (user-account (nam= e "alice") (group "users")
    = ;            (supple= mentary-groups '("wheel" "netdev" "audio" &qu= ot;video"))
         = ;       (home-directory "/home/alice&quo= t;))
           = ;     (user-account (name "mom") (group "= ;users")
         &n= bsp;      (supplementary-groups '("wheel"= ; "netdev" "audio" "video"))
  = ;            &n= bsp; (home-directory "/home/mom"))
    &= nbsp;          %base-user-acco= unts))

  ;; This is where we specify system-wide packages.<= br />  (packages (cons* nss-certs      &= nbsp;  ;for HTTPS access
      &nbs= p;            gvfs&n= bsp;            = ; ;for user mounts
        &nb= sp;          %base-packages))<= br />
  (services (cons*  ;;(tor-service)
  &= nbsp;           &nbs= p;     (service postgresql-service-type)
 &nb= sp;            =       (xfce-desktop-service)

 &nbs= p;            &= nbsp;     (modify-services     = ;
           &= nbsp;            (re= move (lambda (service)
        = ;            &n= bsp;       (eq? (service-kind service)
=             &nb= sp;            =        ntp-service-type avahi-service))
=
           &nb= sp;            =     %desktop-services
     &nb= sp;            =       );end of remove
    = ;            &n= bsp;       (elogind-service-type
 &= nbsp;           &nbs= p;            &= nbsp; c =3D> (elogind-configuration
     &= nbsp;           &nbs= p;            &= nbsp; (handle-lid-switch 'ignore)))
     &nbs= p;            &= nbsp; );;end of modify desktop-srvices

  ));;end of service= s

  ;; Allow resolution of '.local' host names with mDNS.  (name-service-switch %mdns-host-lookup-nss))

  <= br />
# herd status
Started:
...
 + xorg-serv= er
Stopped:
 - avahi-daemon
 - networking
&nb= sp;- ntpd
 - swap-/dev/sda2
 - term-auto
 - u= ser-homes
 - wpa-supplicant
 
How dele= te at all avahi-daemon and ntpd?
------=_Part_129106_470001302.1543388717519-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Branson Subject: Re: Features of installing package that works as service Date: Thu, 29 Nov 2018 07:08:50 -0500 Message-ID: <87a7lsnl0t.fsf@fastmail.com> References: <87a7luwqa8.fsf@fastmail.com> <87a7luwqa8.fsf@fastmail.com>> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSL7G-0004tO-0E for help-guix@gnu.org; Thu, 29 Nov 2018 07:08:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSL7B-0006Jm-3I for help-guix@gnu.org; Thu, 29 Nov 2018 07:08:22 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:46881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSL7A-0006IJ-LU for help-guix@gnu.org; Thu, 29 Nov 2018 07:08:16 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E42D421F05 for ; Thu, 29 Nov 2018 07:08:14 -0500 (EST) Received: from dobby (unknown [72.12.220.132]) by mail.messagingengine.com (Postfix) with ESMTPA id 508B9E4122 for ; Thu, 29 Nov 2018 07:08:14 -0500 (EST) In-Reply-To: (znavko's message of "Wed, 28 Nov 2018 08:05:17 +0100 (CET)") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org writes: I'm not sure what's wrong here. As far as I can understand you code makes sense and should remove the services that you don't want. You've probably seen this bit of code here: https://www.gnu.org/software/guix/manual/en/guix.html#Base-Services (remove (lambda (service) (eq? (service-kind service) avahi-service-type)) %desktop-services) Which is what you have written down. I'm at a loss. I wish I knew what was wrong with wrote you have written. Joshua > Hello, Guix Help! guix understands this config, but still I have avahi-daemon and ntpd services. They are not started, I want delete them at all. How to do > that? > > ;;this is znavko's cute config > > (use-modules (gnu) (gnu system nss) > (gnu services desktop) > (srfi srfi-1) ;;for remove function > (gnu services networking) ;;for remove ntp > (gnu services avahi) ;;for remove avahi > (gnu services xorg) > (gnu services databases);;for postgres > ) > (use-service-modules desktop) > (use-package-modules certs gnome) > > (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8") > (bootloader (bootloader-configuration > (bootloader grub-bootloader) > (target "/dev/sda"))) > (file-systems (cons (file-system > (device "/dev/sda1") (mount-point "/") (type "ext4")) > %base-file-systems)) > (swap-devices '("/dev/sda2")) > > (users (cons* (user-account (name "bob") (group "users") > (supplementary-groups '("wheel" "netdev" "audio" "video")) > (home-directory "/home/bob")) > (user-account (name "alice") (group "users") > (supplementary-groups '("wheel" "netdev" "audio" "video")) > (home-directory "/home/alice")) > (user-account (name "mom") (group "users") > (supplementary-groups '("wheel" "netdev" "audio" "video")) > (home-directory "/home/mom")) > %base-user-accounts)) > > ;; This is where we specify system-wide packages. > (packages (cons* nss-certs ;for HTTPS access > gvfs ;for user mounts > %base-packages)) > > (services (cons* ;;(tor-service) > (service postgresql-service-type) > (xfce-desktop-service) > > (modify-services > (remove (lambda (service) > (eq? (service-kind service) > ntp-service-type avahi-service)) > > %desktop-services > );end of remove > (elogind-service-type > c => (elogind-configuration > (handle-lid-switch 'ignore))) > );;end of modify desktop-srvices > > ));;end of services > > ;; Allow resolution of '.local' host names with mDNS. > (name-service-switch %mdns-host-lookup-nss)) > > # herd status > Started: > ... > + xorg-server > Stopped: > - avahi-daemon > - networking > - ntpd > - swap-/dev/sda2 > - term-auto > - user-homes > - wpa-supplicant > > How delete at all avahi-daemon and ntpd?