From: Chris Marusich <cmmarusich@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 2/2] services: desktop: Use libmtp udev rules.
Date: Sun, 25 Dec 2016 16:59:05 -0800 [thread overview]
Message-ID: <20161226005905.1796-3-cmmarusich@gmail.com> (raw)
In-Reply-To: <20161226005905.1796-1-cmmarusich@gmail.com>
* gnu/services/desktop.scm (%modified-base-services): New variable.
(%desktop-services): Use it.
---
gnu/services/desktop.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 7555780ad..72f35950b 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
+;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -40,6 +41,7 @@
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages suckless)
#:use-module (gnu packages linux)
+ #:use-module (gnu packages libusb)
#:use-module (guix records)
#:use-module (guix packages)
#:use-module (guix store)
@@ -745,6 +747,16 @@ with the administrator's password."
;;; The default set of desktop services.
;;;
+(define %modified-base-services
+ (modify-services %base-services
+ ;; Add the rules from libmtp.
+ (udev-service-type config =>
+ (udev-configuration
+ (inherit config)
+ (rules
+ (cons* libmtp
+ (udev-configuration-rules config)))))))
+
(define %desktop-services
;; List of services typically useful for a "desktop" use case.
(cons* (slim-service)
@@ -766,6 +778,6 @@ with the administrator's password."
(ntp-service)
- %base-services))
+ %modified-base-services))
;;; desktop.scm ends here
--
2.11.0
prev parent reply other threads:[~2016-12-26 0:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-26 0:59 Let non-root users use MTP devices Chris Marusich
2016-12-26 0:59 ` [PATCH 1/2] gnu: libmtp: Grant "audio" group access to device files Chris Marusich
2016-12-26 13:02 ` Ricardo Wurmus
2016-12-28 11:18 ` Chris Marusich
2016-12-29 9:01 ` Let non-root users use MTP devices (Attempt #2) Chris Marusich
2016-12-29 9:01 ` [PATCH 1/2] gnu: elogind: Enable ACL support Chris Marusich
2016-12-29 9:01 ` [PATCH 2/2] services: desktop: Use libmtp udev rules Chris Marusich
2016-12-29 22:37 ` Ludovic Courtès
2016-12-29 23:57 ` Chris Marusich
2016-12-29 10:15 ` Let non-root users use MTP devices (Attempt #2) Chris Marusich
2016-12-29 22:48 ` Ludovic Courtès
2016-12-30 0:41 ` Chris Marusich
2016-12-29 22:44 ` Ludovic Courtès
2016-12-26 0:59 ` Chris Marusich [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=20161226005905.1796-3-cmmarusich@gmail.com \
--to=cmmarusich@gmail.com \
--cc=guix-devel@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 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).