gnu: xfce: Enable xfce4-screensaver.

This fixes <https://issues.guix.gnu.org/75288>.

* gnu/packages/xfce.scm (xfce)[inputs]: Add xfce4-screensaver.
* gnu/services/desktop.scm (xfce-pam-services): New procedure.
(xfce-desktop-service-type): Add a extension for pam-root-service-type.

Change-Id: I4bdf5088f4ccc743afdcfdd2d68541c2d883552d
This commit is contained in:
宋文武 2025-01-12 14:05:16 +08:00
parent a9a13ebccc
commit 5d6c8767f6
No known key found for this signature in database
GPG key ID: D415BF253B515976
2 changed files with 6 additions and 0 deletions

View file

@ -1375,6 +1375,7 @@ (define-public xfce
xfce4-notifyd ;for pop-up notifications
xfce4-panel
xfce4-power-manager
xfce4-screensaver
xfce4-screenshooter
xfce4-session
xfce4-settings

View file

@ -1660,12 +1660,17 @@ (define (xfce-polkit-settings config)
'("thunar"
"xfce4-power-manager"))))
(define (xfce-pam-services config)
(list (unix-pam-service "xfce4-screensaver")))
(define xfce-desktop-service-type
(service-type
(name 'xfce-desktop)
(extensions
(list (service-extension polkit-service-type
xfce-polkit-settings)
(service-extension pam-root-service-type
xfce-pam-services)
(service-extension profile-service-type
(compose list xfce-package))))
(default-value (xfce-desktop-configuration))