~ruther/guix-local

bc30a9ee889fb1b81c43a7f94ea4c2b95a15db75 — Bruno Victal 3 years ago 206446b
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>
2 files changed, 3 insertions(+), 2 deletions(-)

M doc/guix.texi
M gnu/services/audio.scm
M doc/guix.texi => doc/guix.texi +1 -1
@@ 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)

M gnu/services/audio.scm => gnu/services/audio.scm +2 -1
@@ 346,7 346,8 @@ will depend on."
   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)