summaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorSughosha <sughosha@disroot.org>2026-03-08 12:08:06 +0530
committerSughosha <sughosha@disroot.org>2026-03-14 20:15:20 +0530
commit249f30462bfd5976ea0f92503799656f2af5fe0a (patch)
tree0887355a9be070807fd173c3e9d32b7327753d97 /gnu/services
parent4b58dad42b3ba14763b5e04307a530ead80af3b4 (diff)
services: plasma-desktop: Enable udev configurations.
* gnu/services/desktop.scm (plasma-udev-configurations): New variable. (plasma-desktop-service-type): Extend udev-service-type with it. Change-Id: Ifcf08c731b1173c9c811b22744072538e4df7e36
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/desktop.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 4e3940c3a61..7a892128123 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -2362,6 +2362,15 @@ rules."
"plasma-workspace"
"powerdevil"))))
+(define (plasma-udev-configurations config)
+ "Return the list of KDE Plasma dependencies that provide udev rules and
+hardware files."
+ (let ((plasma-plasma (plasma-package config)))
+ (map (lambda (name)
+ ((package-direct-input-selector name) plasma-plasma))
+ '("bolt" ;for plasma-thunderbolt
+ "fwupd")))) ;for kinfocenter and discover
+
;; see https://bugs.kde.org/show_bug.cgi?id=456210
;; if `kde' no exits, fallback to `other', and then unlock lockscreen not work,
;; so add it.
@@ -2380,6 +2389,8 @@ rules."
plasma-dbus-service)
(service-extension pam-root-service-type
plasma-pam-services)
+ (service-extension udev-service-type
+ plasma-udev-configurations)
(service-extension profile-service-type
(compose list
plasma-package))))))