aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-01-29 15:17:11 +0000
committerChristopher Baines <mail@cbaines.net>2019-02-16 22:05:15 +0000
commit8d2c3c54ee4f7c2be1b9c897ee85c26cd5d34a50 (patch)
tree0d9ade10f6af1bce892146cfd33cc51893b1ed1c /gnu
parent8b9a7b26c290228223829f842240f3675a87da7b (diff)
downloadguix-8d2c3c54ee4f7c2be1b9c897ee85c26cd5d34a50.tar
guix-8d2c3c54ee4f7c2be1b9c897ee85c26cd5d34a50.tar.gz
services: desktop: Deprecate the upower-service procedure.
This has now been replaced by the upower-service-type and <upower-configuration> record. * gnu/services/desktop.scm (upower-service): Deprecate this procedure.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/desktop.scm25
1 files changed, 13 insertions, 12 deletions
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index a4d528f224..ce63969dc8 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -51,6 +51,7 @@
#:use-module (gnu packages libusb)
#:use-module (gnu packages mate)
#:use-module (gnu packages enlightenment)
+ #:use-module (guix deprecation)
#:use-module (guix records)
#:use-module (guix packages)
#:use-module (guix store)
@@ -293,18 +294,18 @@ used by GNOME.")
upower-package)))
(default-value (upower-configuration)))))
-(define* (upower-service #:key (upower upower)
- (watts-up-pro? #f)
- (poll-batteries? #t)
- (ignore-lid? #f)
- (use-percentage-for-policy? #f)
- (percentage-low 10)
- (percentage-critical 3)
- (percentage-action 2)
- (time-low 1200)
- (time-critical 300)
- (time-action 120)
- (critical-power-action 'hybrid-sleep))
+(define-deprecated (upower-service #:key (upower upower)
+ (watts-up-pro? #f)
+ (poll-batteries? #t)
+ (ignore-lid? #f)
+ (use-percentage-for-policy? #f)
+ (percentage-low 10)
+ (percentage-critical 3)
+ (percentage-action 2)
+ (time-low 1200)
+ (time-critical 300)
+ (time-action 120)
+ (critical-power-action 'hybrid-sleep))
"Return a service that runs @uref{http://upower.freedesktop.org/,
@command{upowerd}}, a system-wide monitor for power consumption and battery
levels, with the given configuration settings. It implements the