gnu: mpd-service-type: Add to the `audio' group.

Also, add `audio' to %mpd-user’s supplementary groups.  Without membership in
the `audio' group, MPD can’t access the sound hardware.

Fixes guix/guix#4136.

* gnu/services/audio.scm (%mpd-user): Add `audio' supplementary group.

Change-Id: I86c9990d516301c85eeee125bc9d0f44c73612c6
This commit is contained in:
Ian Eure 2025-11-08 15:22:20 -08:00
parent 701a498b42
commit d780c4c1cc
No known key found for this signature in database
GPG key ID: 8499AC88F1A71CF2

View file

@ -188,6 +188,7 @@
(user-account
(name "mpd")
(group (user-group-name %mpd-group))
(supplementary-groups '("audio"))
(system? #t)
(comment "Music Player Daemon (MPD) user")
;; MPD can use $HOME (or $XDG_CONFIG_HOME) to place its data.