services: mpd: Set PulseAudio-related variables.

These variables are necessary for PulseAudio to work properly out-of-the-box
for 'non-interactive' users.

* doc/guix.texi (Audio Services): Update environment-variables field description for
mpd-configuration data type.
* gnu/services/audio.scm (mpd-configuration)[environment-variables]: Set
PULSE_CLIENTCONFIG and PULSE_CONFIG environment variables to the system-wide
PulseAudio configuration.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Bruno Victal 2023-03-23 15:02:16 +00:00 committed by Maxim Cournoyer
parent 206446b484
commit bc30a9ee88
No known key found for this signature in database
GPG key ID: 1260E46482E63562
2 changed files with 3 additions and 2 deletions

View file

@ -33501,7 +33501,7 @@ The group to run mpd as.
This is a list of symbols naming Shepherd services that this service
will depend on.
@item @code{environment-variables} (default: @code{()}) (type: list-of-strings)
@item @code{environment-variables} (default: @code{("PULSE_CLIENTCONFIG=/etc/pulse/client.conf" "PULSE_CONFIG=/etc/pulse/daemon.conf")}) (type: list-of-strings)
A list of strings specifying environment variables.
@item @code{log-file} (default: @code{"/var/log/mpd/log"}) (type: maybe-string)

View file

@ -346,7 +346,8 @@ (define-configuration mpd-configuration
empty-serializer)
(environment-variables
(list-of-strings '())
(list-of-strings '("PULSE_CLIENTCONFIG=/etc/pulse/client.conf"
"PULSE_CONFIG=/etc/pulse/daemon.conf"))
"A list of strings specifying environment variables."
empty-serializer)