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?