diff options
| author | Ian Eure <ian@retrospec.tv> | 2025-11-08 15:22:20 -0800 |
|---|---|---|
| committer | Ian Eure <ian@retrospec.tv> | 2025-11-08 23:40:45 -0800 |
| commit | d780c4c1cc9fc523d51d131d5f93afded29bee95 (patch) | |
| tree | 413bf28efe84b1e3f06f05b30a421be3647a09e5 | |
| parent | 701a498b422f41301edbf150602a4110eda56e0a (diff) | |
gnu: mpd-service-type: Add to the `audio' group.mpd-fix-groups
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
| -rw-r--r-- | gnu/services/audio.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm index 5f187ea85b3..53883261fb4 100644 --- a/gnu/services/audio.scm +++ b/gnu/services/audio.scm | |||
| @@ -188,6 +188,7 @@ | |||
| 188 | (user-account | 188 | (user-account |
| 189 | (name "mpd") | 189 | (name "mpd") |
| 190 | (group (user-group-name %mpd-group)) | 190 | (group (user-group-name %mpd-group)) |
| 191 | (supplementary-groups '("audio")) | ||
| 191 | (system? #t) | 192 | (system? #t) |
| 192 | (comment "Music Player Daemon (MPD) user") | 193 | (comment "Music Player Daemon (MPD) user") |
| 193 | ;; MPD can use $HOME (or $XDG_CONFIG_HOME) to place its data. | 194 | ;; MPD can use $HOME (or $XDG_CONFIG_HOME) to place its data. |
