(gnu services audio) module provides a service to start MPD
(the Music Player Daemon).
The Music Player Daemon (MPD) is a service that can play music while being controlled from the local machine or over the network by a variety of clients.
The following example shows how one might run
mpd as user
"bob" on port
6666. It uses pulseaudio for output.
(service mpd-service-type (mpd-configuration (user "bob") (port "6666")))
The service type for
Data type representing the configuration of
The user to run mpd as.
The directory to scan for music files.
The directory to store playlists.
The location of the music database.
The location of the file that stores current MPD’s state.
The location of the sticker database.
The port to run mpd on.
The address that mpd will bind to. To use a Unix domain socket, an absolute path can be specified here.