From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: [PATCH 2/2] services: desktop: Use libmtp udev rules. Date: Thu, 29 Dec 2016 01:01:21 -0800 Message-ID: <20161229090121.3718-3-cmmarusich@gmail.com> References: <87mvfggv4k.fsf@gmail.com> <20161229090121.3718-1-cmmarusich@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMWao-0007vG-JG for guix-devel@gnu.org; Thu, 29 Dec 2016 04:01:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMWan-0007yv-Nk for guix-devel@gnu.org; Thu, 29 Dec 2016 04:01:46 -0500 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:33954) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cMWan-0007yb-In for guix-devel@gnu.org; Thu, 29 Dec 2016 04:01:45 -0500 Received: by mail-pf0-x241.google.com with SMTP id y68so20545247pfb.1 for ; Thu, 29 Dec 2016 01:01:45 -0800 (PST) In-Reply-To: <20161229090121.3718-1-cmmarusich@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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 ;;; Copyright © 2015 Mark H Weaver ;;; Copyright © 2016 Sou Bunnbu +;;; Copyright © 2016 Chris Marusich ;;; ;;; 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