aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-09-17 12:23:41 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-10-07 01:20:22 +0900
commitcf3f9230c302201e4808b322832260c0b9fbeab6 (patch)
tree657d1c8267c4655165087a37a0a4fa0decb32a7c /gnu
parent6954cc6c7a211e24b4e2ec8cd67d880318bd04f8 (diff)
downloadguix-cf3f9230c302201e4808b322832260c0b9fbeab6.tar
guix-cf3f9230c302201e4808b322832260c0b9fbeab6.tar.gz
services: Extend udev rules in joycond-service-type.
* gnu/services/games.scm (joycond-service-type): Also extend the udev service with the configured joycond package. * doc/guix.texi (Game Services): Update documentation. Change-Id: I9f7fb0da5cfc1f8a7e8bb5f2ce7161e5e66b2f5e
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/games.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/services/games.scm b/gnu/services/games.scm
index e63c1c1299..2557b82bec 100644
--- a/gnu/services/games.scm
+++ b/gnu/services/games.scm
@@ -23,6 +23,7 @@
#:use-module (gnu services shepherd)
#:use-module (gnu packages admin)
#:use-module (gnu packages games)
+ #:use-module ((gnu services base) #:select (udev-service-type))
#:use-module (gnu system shadow)
#:use-module ((gnu system file-systems) #:select (file-system-mapping))
#:use-module (gnu build linux-container)
@@ -61,10 +62,13 @@
(service-type
(name 'joycond)
(description
- "Run @command{joycond} for pairing Nintendo joycons via Bluetooth.")
+ "Run @command{joycond} for pairing Nintendo joycons via Bluetooth and
+install udev rules required to use the controller as an unprivileged user.")
(extensions
(list (service-extension shepherd-root-service-type
- joycond-shepherd-service)))
+ joycond-shepherd-service)
+ (service-extension udev-service-type
+ (compose list joycond-configuration-package))))
(default-value (joycond-configuration))))