all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joshua Branson <jbranso@fastmail.com>
To: help-guix@gnu.org
Subject: Re: Features of installing package that works as service
Date: Thu, 29 Nov 2018 07:08:50 -0500	[thread overview]
Message-ID: <87a7lsnl0t.fsf@fastmail.com> (raw)
In-Reply-To: <LSO7i-I--3-1@tutanota.com> (znavko's message of "Wed, 28 Nov 2018 08:05:17 +0100 (CET)")

<znavko@tutanota.com> 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?

  reply	other threads:[~2018-11-29 12:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-27  9:38 Features of installing package that works as service znavko
2018-11-27 14:25 ` Joshua Branson
2018-11-28  6:31   ` znavko
     [not found]   ` <<87a7luwqa8.fsf@fastmail.com>
     [not found]     ` <LSO-zSI--3-1@tutanota.com-LSO2Gyh----1>
2018-11-28  7:05       ` znavko
2018-11-29 12:08         ` Joshua Branson [this message]
2018-11-27 17:04 ` Tonton

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a7lsnl0t.fsf@fastmail.com \
    --to=jbranso@fastmail.com \
    --cc=help-guix@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.