[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Features of installing package that works as service

From: znavko
Subject: Re: Features of installing package that works as service
Date: Wed, 28 Nov 2018 08:05:17 +0100 (CET)

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"))
  (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"))

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   gvfs              ;for user mounts

  (services (cons*  ;;(tor-service)
                    (service postgresql-service-type)

                        (remove (lambda (service)
                            (eq? (service-kind service)
                                ntp-service-type avahi-service))

                        );end of remove
                            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
 + xorg-server
 - avahi-daemon
 - networking
 - ntpd
 - swap-/dev/sda2
 - term-auto
 - user-homes
 - wpa-supplicant
How delete at all avahi-daemon and ntpd?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]