From: <znavko@tutanota.com>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: Features of installing package that works as service
Date: Wed, 28 Nov 2018 08:05:17 +0100 (CET) [thread overview]
Message-ID: <LSO7i-I--3-1@tutanota.com> (raw)
In-Reply-To: <LSO-zSI--3-1@tutanota.com-LSO2Gyh----1>
[-- Attachment #1: Type: text/plain, Size: 3468 bytes --]
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?
[-- Attachment #2: Type: text/html, Size: 6849 bytes --]
next prev parent reply other threads:[~2018-11-28 7:11 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 [this message]
2018-11-29 12:08 ` Joshua Branson
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=LSO7i-I--3-1@tutanota.com \
--to=znavko@tutanota.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.