services: upower: Add upower to the global profile.
* gnu/services/desktop.scm (upower-service-type): Extend PROFILE-SERVICE-TYPE.
This commit is contained in:
parent
42c97811c9
commit
edc891fa76
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
|
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
|
||||||
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
||||||
;;;
|
;;;
|
||||||
|
@ -182,6 +182,7 @@ is set to @var{value} when the bus daemon launches it."
|
||||||
(stop #~(make-kill-destructor))))))
|
(stop #~(make-kill-destructor))))))
|
||||||
|
|
||||||
(define upower-service-type
|
(define upower-service-type
|
||||||
|
(let ((upower-package (compose list upower-configuration-upower)))
|
||||||
(service-type (name 'upower)
|
(service-type (name 'upower)
|
||||||
(extensions
|
(extensions
|
||||||
(list (service-extension dbus-root-service-type
|
(list (service-extension dbus-root-service-type
|
||||||
|
@ -191,9 +192,11 @@ is set to @var{value} when the bus daemon launches it."
|
||||||
(service-extension activation-service-type
|
(service-extension activation-service-type
|
||||||
(const %upower-activation))
|
(const %upower-activation))
|
||||||
(service-extension udev-service-type
|
(service-extension udev-service-type
|
||||||
(compose
|
upower-package)
|
||||||
list
|
|
||||||
upower-configuration-upower))))))
|
;; Make the 'upower' command visible.
|
||||||
|
(service-extension profile-service-type
|
||||||
|
upower-package))))))
|
||||||
|
|
||||||
(define* (upower-service #:key (upower upower)
|
(define* (upower-service #:key (upower upower)
|
||||||
(watts-up-pro? #f)
|
(watts-up-pro? #f)
|
||||||
|
|
Loading…
Reference in New Issue