From: ludo@gnu.org (Ludovic Courtès)
To: Andy Wingo <wingo@igalia.com>
Cc: guix-devel@gnu.org
Subject: Re: Services and packages in GuixSD
Date: Tue, 25 Aug 2015 15:45:41 +0200 [thread overview]
Message-ID: <871terpjlm.fsf@gnu.org> (raw)
In-Reply-To: <87lhdkpfeu.fsf@igalia.com> (Andy Wingo's message of "Sun, 09 Aug 2015 18:58:33 +0200")
Andy Wingo <wingo@igalia.com> skribis:
> For example this is my current services definition:
>
> (services
> (let ((motd (text-file "motd" "
> This is the GNU operating system, welcome!\n\n")))
> (list (console-font-service "tty1")
> (console-font-service "tty2")
> (console-font-service "tty3")
> (console-font-service "tty4")
> (console-font-service "tty5")
> (console-font-service "tty6")
>
> (mingetty-service "tty1" #:motd motd)
> (mingetty-service "tty2" #:motd motd)
> (mingetty-service "tty3" #:motd motd)
> (mingetty-service "tty4" #:motd motd)
> (mingetty-service "tty5" #:motd motd)
> (mingetty-service "tty6" #:motd motd)
> (static-networking-service
> "lo" "127.0.0.1" #:provision '(loopback))
> (syslog-service)
> (guix-service)
> (nscd-service #:name-services (list nss-mdns))
>
> (slim-service)
> (lsh-service)
> (wicd-service)
> (avahi-service)
> (dbus-service
> (list avahi wicd upower colord geoclue polkit))
> (upower-service)
> ;; FIXME: Can be bus-activated; just need to make the config
> ;; and the user.
> (geoclue-service)
> ;; FIXME: Doesn't need to be run at startup; can be activated
> ;; via dbus. However we do it here in order to create
> ;; /var/lib/colord.
> (colord-service)
> ;; FIXME: Can be bus-activated; just need to make the user.
> (polkit-service)
> ;; The LVM2 rules are needed as soon as LVM2 or the
> ;; device-mapper is used, so enable them by default. The FUSE
> ;; and ALSA rules are less critical, but handy.
> (udev-service
> #:rules (list lvm2 fuse alsa-utils upower colord)))))
>
> I can't switch to use %base-services or %desktop-services because of the
> udev-service and dbus-service configurations. That's the bug I'm trying
> to solve here.
You can but it’s inconvenient: You could use a trick similar to the
‘%my-base-services’ example given at
https://www.gnu.org/software/guix/manual/html_node/Name-Service-Switch.html
I think we should probably change service procedures to return
first-class objects rather than monadic values (by defining a gexp
expander). That would make such customization easier.
Additionally, we should arrange so we don’t have to define dmd services
do D-Bus services, because the system bus already takes care of them.
Presumably that means that we need a <dbus-service> type, which would
encompass a package (e.g., GeoClue) and its associated config (e.g., a
record or a file-like object.)
WDYT?
Thanks,
Ludo’.
prev parent reply other threads:[~2015-08-25 13:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-09 16:58 Services and packages in GuixSD Andy Wingo
2015-08-12 1:13 ` 宋文武
2015-08-12 7:57 ` Andy Wingo
2015-08-25 20:36 ` Ludovic Courtès
2015-08-26 7:15 ` Andy Wingo
2015-08-26 10:54 ` Ludovic Courtès
2015-08-26 11:06 ` Andy Wingo
2015-08-28 9:08 ` Ludovic Courtès
2015-08-25 20:36 ` Ludovic Courtès
2015-08-25 13:45 ` Ludovic Courtès [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871terpjlm.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=wingo@igalia.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).