[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/45: WIP services: Add KDE Plasme desktop service.
From: |
guix-commits |
Subject: |
09/45: WIP services: Add KDE Plasme desktop service. |
Date: |
Sun, 31 Jan 2021 10:27:21 -0500 (EST) |
htgoebel pushed a commit to branch wip-kde-plasma
in repository guix.
commit 0a1b740b824a4b5c9daa1f7c851bff719a194084
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Mon Jul 31 13:04:22 2017 +0200
WIP services: Add KDE Plasme desktop service.
* gnu/services/desktop.scm (<kde-desktop-configuration>,
kde-desktop-service-type): New variables.
(kde-desktop-service): New public variable.
---
gnu/services/desktop.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 265cf9f..20371a3 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
;;; Copyright © 2017, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2017 Nikita <nikita@n0.is>
+;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2018, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017, 2019 Christopher Baines <mail@cbaines.net>
@@ -47,6 +48,9 @@
#:use-module (gnu packages cups)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gnome)
+ #:use-module (gnu packages kde)
+ #:use-module (gnu packages kde-frameworks)
+ #:use-module (gnu packages kde-plasma)
#:use-module (gnu packages xfce)
#:use-module (gnu packages avahi)
#:use-module (gnu packages xdisorg)
@@ -133,6 +137,11 @@
lxqt-desktop-configuration?
lxqt-desktop-service-type
+ plasma-desktop-configuration
+ plasma-desktop-configuration?
+ plasma-desktop-service
+ plasma-desktop-service-type
+
xfce-desktop-configuration
xfce-desktop-configuration?
xfce-desktop-service
@@ -1106,6 +1115,51 @@ profile, and extends dbus with the ability for
@code{efl} to generate
thumbnails and makes setuid the programs which enlightenment needs to function
as expected.")))
+;;;
+;;; KDE Plasma desktop service.
+;;;
+
+(define-record-type* <plasma-desktop-configuration>
plasma-desktop-configuration
+ make-plasma-desktop-configuration
+ plasma-desktop-configuration
+ (plasma-package plasma-package (default plasma-workspace)))
+
+(define (plasma-polkit-settings config)
+ "Return the list of KDE Plasma dependencies that provide polkit actions and
+rules."
+ (let ((plasma-plasma (plasma-package config)))
+ (map (lambda (name)
+ ((package-direct-input-selector name) plasma-plasma))
+ '(;;"kde-settings-daemon"
+ ;;"kde-control-center"
+ "systemsettings"
+ "plasma-pa"
+ "plasma-nm"
+ "plasma-desktop"
+ ;;"oxygen-fonts"
+ ;; kinit klauncher kded kcminit ksmsettings kstartupconfig5
+ ;; qdbus
+ ;; Magia task-plasma5-minimal adds: ark dbus-x11 dolphin gwenview
+ ;; kcalc khelpcenter kwalletmanager kwrite oxygen-fonts
+ ;; phonon4qt5-gstreamer phonon4qt5-vlc plasma-desktop plasma-pa
+ ;; plasma-workspace sddm systemsettings task-x11 xsettings-kde
+ ))))
+
+(define plasma-desktop-service-type
+ (service-type
+ (name 'plasma-desktop)
+ (extensions
+ (list ;;(service-extension polkit-service-type
+ ;; plasma-polkit-settings)
+ (service-extension profile-service-type
+ (compose list
+ plasma-package))))))
+
+(define* (plasma-desktop-service #:key (config (plasma-desktop-configuration)))
+ "Return a service that adds the @code{plasma} package to the system profile,
+and extends polkit with the actions from @code{kde-settings-daemon}."
+ (service plasma-desktop-service-type config))
+
;;;
;;; inputattach-service-type
- 10/45: WIP plasma.tmpl., (continued)
- 10/45: WIP plasma.tmpl., guix-commits, 2021/01/31
- 13/45: TEMP Add script for test-building kwin., guix-commits, 2021/01/31
- 18/45: gnu: Add kactivitymanagerd., guix-commits, 2021/01/31
- 22/45: gnu: Add kwallet-pam., guix-commits, 2021/01/31
- 24/45: gnu: Add kscreen., guix-commits, 2021/01/31
- 27/45: gnu: Add plasma-integration., guix-commits, 2021/01/31
- 26/45: gnu: Add oxygen., guix-commits, 2021/01/31
- 17/45: gnu: Add breeze-gtk., guix-commits, 2021/01/31
- 19/45: gnu: Add kde-cli-tools., guix-commits, 2021/01/31
- 33/45: gnu: Add polkit-kde-agent-1., guix-commits, 2021/01/31
- 09/45: WIP services: Add KDE Plasme desktop service.,
guix-commits <=
- 05/45: gnu: Add kwayland-server., guix-commits, 2021/01/31
- 02/45: gnu: Add ksysguard., guix-commits, 2021/01/31
- 12/45: TEMP Add some scripts for maintaining KDE packages., guix-commits, 2021/01/31
- 14/45: TEMP Add custom `startkde` script to be used in the VM., guix-commits, 2021/01/31
- 16/45: gnu: Add bluedevil., guix-commits, 2021/01/31
- 29/45: gnu: Add plasma-pa., guix-commits, 2021/01/31
- 03/45: gnu: Add kwayland-integration., guix-commits, 2021/01/31
- 08/45: gnu: Add plasma-desktop., guix-commits, 2021/01/31
- 04/45: gnu: Add plasma-wayland-protocols., guix-commits, 2021/01/31
- 28/45: gnu: Add plasma-nm., guix-commits, 2021/01/31