all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: 30991@debbugs.gnu.org
Subject: [bug#30991] [PATCH v2 2/3] services: Add modem-manager-service-type.
Date: Fri, 30 Mar 2018 00:21:39 +0200	[thread overview]
Message-ID: <20180329222140.21590-3-dannym@scratchpost.org> (raw)
In-Reply-To: <20180329222140.21590-1-dannym@scratchpost.org>

* gnu/services/networking.scm (modem-manager-service-type): New variable.
(<modem-manager-configuration>): New variable.
(modem-manager-configuration): New procedure.
(modem-manager-configuration?): New procedure.
* doc/guix.texi (Networking Services): Document it.
---
 doc/guix.texi               | 22 ++++++++++++++++++++++
 gnu/services/networking.scm | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 25c08b9f0..23b7ae089 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -10712,6 +10712,28 @@ several commands to interact with the daemon and configure networking:
 and @command{wicd-curses} user interfaces.
 @end deffn
 
+@cindex ModemManager
+
+@defvr {Scheme Variable} modem-manager-service-type
+This is the service type for the
+@uref{https://wiki.gnome.org/Projects/ModemManager, ModemManager}
+service. The value for this service type is a
+@code{modem-manager-configuration} record.
+
+This service is part of @code{%desktop-services} (@pxref{Desktop
+Services}).
+@end defvr
+
+@deftp {Data Type} modem-manager-configuration
+Data type representing the configuration of ModemManager.
+
+@table @asis
+@item @code{modem-manager} (default: @code{modem-manager})
+The ModemManager package to use.
+
+@end table
+@end deftp
+
 @cindex NetworkManager
 
 @defvr {Scheme Variable} network-manager-service-type
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index da96bbeb5..5092a5f35 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -31,6 +31,7 @@
   #:use-module (gnu system pam)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages connman)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages tor)
   #:use-module (gnu packages messaging)
@@ -80,6 +81,9 @@
             connman-configuration?
             connman-service-type
 
+            modem-manager-configuration
+            modem-manager-configuration?
+            modem-manager-service-type
             wpa-supplicant-service-type
 
             openvswitch-service-type
@@ -732,6 +736,17 @@ and @command{wicd-curses} user interfaces."
   (service wicd-service-type wicd))
 
 \f
+;;;
+;;; ModemManager
+;;;
+
+(define-record-type* <modem-manager-configuration>
+  modem-manager-configuration make-modem-manager-configuration
+  modem-manager-configuration?
+  (modem-manager modem-manager-configuration-modem-manager
+                   (default modem-manager)))
+
+\f
 ;;;
 ;;; NetworkManager
 ;;;
@@ -869,6 +884,30 @@ wireless networking."))))
 a network connection manager."))))
 
 \f
+;;;
+;;; Modem manager
+;;;
+
+(define modem-manager-service-type
+  (let ((config->package
+         (match-lambda
+          (($ <modem-manager-configuration> modem-manager)
+           (list modem-manager)))))
+    (service-type (name 'modem-manager)
+                  (extensions
+                   (list (service-extension dbus-root-service-type
+                                            config->package)
+                         (service-extension udev-service-type
+                                            config->package)
+                         (service-extension polkit-service-type
+                                            config->package)))
+                  (default-value (modem-manager-configuration))
+                  (description
+                   "Run @uref{https://wiki.gnome.org/Projects/ModemManager,
+ModemManager}, a modem management daemon that aims to simplify dialup
+networking."))))
+
+\f
 ;;;
 ;;; WPA supplicant
 ;;;

  parent reply	other threads:[~2018-03-29 22:22 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-29 18:28 [bug#30991] [PATCH 0/2] Add ModemManager service Danny Milosavljevic
2018-03-29 18:33 ` [bug#30991] [PATCH 1/2] services: Add modem-manager-service-type Danny Milosavljevic
2018-03-29 18:33   ` [bug#30991] [PATCH 2/2] services: Add ModemManager to '%desktop-services' Danny Milosavljevic
2018-03-29 19:15 ` [bug#30991] [PATCH 0/2] Add ModemManager service Danny Milosavljevic
2018-03-29 22:21 ` [bug#30991] [PATCH v2 0/3] " Danny Milosavljevic
2018-03-29 22:21   ` [bug#30991] [PATCH v2 1/3] services: Move static-networking to (gnu services base) Danny Milosavljevic
2018-03-31 16:13     ` Ludovic Courtès
2018-04-01  8:16       ` Danny Milosavljevic
2018-04-01  9:38         ` Ludovic Courtès
2018-03-29 22:21   ` Danny Milosavljevic [this message]
2018-03-31 16:14     ` [bug#30991] [PATCH v2 2/3] services: Add modem-manager-service-type Ludovic Courtès
2018-09-04 13:22       ` Ludovic Courtès
2018-09-04 19:41         ` Danny Milosavljevic
2018-09-04 20:53           ` Ludovic Courtès
2018-09-04 21:16             ` Danny Milosavljevic
2018-03-31 18:39     ` Björn Höfling
2018-03-29 22:21   ` [bug#30991] [PATCH v2 3/3] services: Add ModemManager to '%desktop-services' Danny Milosavljevic
2018-03-31 16:08     ` Ludovic Courtès
2018-05-01  9:58       ` Danny Milosavljevic
2018-05-06 21:00         ` Ludovic Courtès
2018-05-08  7:04           ` Danny Milosavljevic
2018-05-08 13:35             ` Ludovic Courtès

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=20180329222140.21590-3-dannym@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=30991@debbugs.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.