services: Add "sane" service.

* gnu/services/desktop.scm (%desktop-services): Add "sane" service.
This commit is contained in:
Danny Milosavljevic 2020-01-05 13:51:02 +01:00
parent 9448d0effc
commit 19b310901c
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -48,6 +48,7 @@ (define-module (gnu services desktop)
#:use-module (gnu packages xfce) #:use-module (gnu packages xfce)
#:use-module (gnu packages avahi) #:use-module (gnu packages avahi)
#:use-module (gnu packages xdisorg) #:use-module (gnu packages xdisorg)
#:use-module (gnu packages scanner)
#:use-module (gnu packages suckless) #:use-module (gnu packages suckless)
#:use-module (gnu packages linux) #:use-module (gnu packages linux)
#:use-module (gnu packages libusb) #:use-module (gnu packages libusb)
@ -1154,6 +1155,8 @@ (define %desktop-services
;; Add udev rules for MTP devices so that non-root users can access ;; Add udev rules for MTP devices so that non-root users can access
;; them. ;; them.
(simple-service 'mtp udev-service-type (list libmtp)) (simple-service 'mtp udev-service-type (list libmtp))
;; Add udev rules for scanners.
(simple-service 'sane udev-service-type (list sane-backends-minimal))
;; Add polkit rules, so that non-root users in the wheel group can ;; Add polkit rules, so that non-root users in the wheel group can
;; perform administrative tasks (similar to "sudo"). ;; perform administrative tasks (similar to "sudo").
polkit-wheel-service polkit-wheel-service