services: Add home-bb-auth-service-type.

* modules/rosenthal/services/desktop.scm (home-bb-auth-service-type): New
variable.
This commit is contained in:
Hilton Chain 2026-03-04 23:42:46 +08:00
parent ea9ece2941
commit 6f64117e14
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292

View File

@ -44,6 +44,7 @@
#:use-module (gnu packages qt) #:use-module (gnu packages qt)
#:use-module (gnu packages wm) #:use-module (gnu packages wm)
#:use-module (gnu packages xorg) #:use-module (gnu packages xorg)
#:use-module (rosenthal packages authentication)
#:use-module (rosenthal packages wm) #:use-module (rosenthal packages wm)
#:export (home-blueman-applet-configuration #:export (home-blueman-applet-configuration
home-blueman-applet-service-type home-blueman-applet-service-type
@ -63,6 +64,7 @@
home-noctalia-shell-configuration home-noctalia-shell-configuration
home-noctalia-shell-service-type home-noctalia-shell-service-type
home-bb-auth-service-type
home-polkit-gnome-service-type home-polkit-gnome-service-type
home-rofi-configuration home-rofi-configuration
@ -353,6 +355,28 @@ compositor.")))
(default-value (home-noctalia-shell-configuration)) (default-value (home-noctalia-shell-configuration))
(description ""))) (description "")))
;;;
;;; bb-auth
;;;
(define (%home-bb-auth-shepherd _)
(list (shepherd-service
(provision '(bb-auth))
(start
#~(make-forkexec-constructor
(list #$(file-append bb-auth "/libexec/bb-auth") "--daemon")))
(stop #~(make-kill-destructor)))))
(define home-bb-auth-service-type
(service-type
(name 'home-bb-auth)
(extensions
(list (service-extension home-shepherd-service-type
%home-bb-auth-shepherd)))
(default-value #f)
(description "Run @command{bb-auth} daemon.")))
;;; ;;;
;;; polkit-gnome ;;; polkit-gnome