mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
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 changed files with 16 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; 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 Mark H Weaver <mhw@netris.org>
|
||||
;;;
|
||||
|
@ -182,18 +182,21 @@ (define (upower-shepherd-service config)
|
|||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define upower-service-type
|
||||
(service-type (name 'upower)
|
||||
(extensions
|
||||
(list (service-extension dbus-root-service-type
|
||||
upower-dbus-service)
|
||||
(service-extension shepherd-root-service-type
|
||||
upower-shepherd-service)
|
||||
(service-extension activation-service-type
|
||||
(const %upower-activation))
|
||||
(service-extension udev-service-type
|
||||
(compose
|
||||
list
|
||||
upower-configuration-upower))))))
|
||||
(let ((upower-package (compose list upower-configuration-upower)))
|
||||
(service-type (name 'upower)
|
||||
(extensions
|
||||
(list (service-extension dbus-root-service-type
|
||||
upower-dbus-service)
|
||||
(service-extension shepherd-root-service-type
|
||||
upower-shepherd-service)
|
||||
(service-extension activation-service-type
|
||||
(const %upower-activation))
|
||||
(service-extension udev-service-type
|
||||
upower-package)
|
||||
|
||||
;; Make the 'upower' command visible.
|
||||
(service-extension profile-service-type
|
||||
upower-package))))))
|
||||
|
||||
(define* (upower-service #:key (upower upower)
|
||||
(watts-up-pro? #f)
|
||||
|
|
Loading…
Reference in a new issue