mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-28 03:51:53 +02:00
services: Add LXQt desktop service.
* gnu/services/desktop.scm (lxqt-desktop-service-type): New variable. (<lxqt-desktop-configuration>): New record type. (lxqt-desktop-configuration?): New procedure. * doc/guix.texi (Desktop Services): Document this. Co-authored-by: Oleg Pykhalov <go.wigust@gmail.com>
This commit is contained in:
committed by
Oleg Pykhalov
parent
807353fe14
commit
764d896668
@@ -11,6 +11,7 @@
|
||||
;;; Copyright © 2019 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
|
||||
;;; Copyright © 2019 David Wilson <david@daviwil.com>
|
||||
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2020 Reza Alizadeh Majd <r.majd@pantherx.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
@@ -53,6 +54,7 @@
|
||||
#:use-module (gnu packages suckless)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages libusb)
|
||||
#:use-module (gnu packages lxqt)
|
||||
#:use-module (gnu packages mate)
|
||||
#:use-module (gnu packages nfs)
|
||||
#:use-module (gnu packages enlightenment)
|
||||
@@ -127,6 +129,11 @@
|
||||
mate-desktop-service
|
||||
mate-desktop-service-type
|
||||
|
||||
lxqt-desktop-configuration
|
||||
lxqt-desktop-configuration?
|
||||
lxqt-desktop-service
|
||||
lxqt-desktop-service-type
|
||||
|
||||
xfce-desktop-configuration
|
||||
xfce-desktop-configuration?
|
||||
xfce-desktop-service
|
||||
@@ -1009,6 +1016,36 @@ system as root from within a user session, after the user has authenticated
|
||||
with the administrator's password."
|
||||
(service xfce-desktop-service-type config))
|
||||
|
||||
+
|
||||
;;;
|
||||
;;; Lxqt desktop service.
|
||||
;;;
|
||||
|
||||
(define-record-type* <lxqt-desktop-configuration> lxqt-desktop-configuration
|
||||
make-lxqt-desktop-configuration
|
||||
lxqt-desktop-configuration?
|
||||
(lxqt lxqt-package
|
||||
(default lxqt)))
|
||||
|
||||
(define (lxqt-polkit-settings config)
|
||||
"Return the list of LXQt dependencies that provide polkit actions and
|
||||
rules."
|
||||
(let ((lxqt (lxqt-package config)))
|
||||
(map (lambda (name)
|
||||
((package-direct-input-selector name) lxqt))
|
||||
'("lxqt-admin"))))
|
||||
|
||||
(define lxqt-desktop-service-type
|
||||
(service-type
|
||||
(name 'lxqt-desktop)
|
||||
(extensions
|
||||
(list (service-extension polkit-service-type
|
||||
lxqt-polkit-settings)
|
||||
(service-extension profile-service-type
|
||||
(compose list lxqt-package))))
|
||||
(default-value (lxqt-desktop-configuration))
|
||||
(description "Run LXQt desktop environment.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; X11 socket directory service
|
||||
|
||||
Reference in New Issue
Block a user