mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
services: mpd: add more configuration options
* gnu/services/audio.scm (<mpd-configuration>): Add 'db-file', 'state-file' and 'sticker-file' fields. * doc/guix.texi (Music Player Daemon): Document it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
99aec37a78
commit
c71b7b5b37
2 changed files with 18 additions and 0 deletions
|
@ -20324,6 +20324,15 @@ The directory to scan for music files.
|
||||||
@item @code{playlist-dir} (default: @code{"~/.mpd/playlists"})
|
@item @code{playlist-dir} (default: @code{"~/.mpd/playlists"})
|
||||||
The directory to store playlists.
|
The directory to store playlists.
|
||||||
|
|
||||||
|
@item @code{db-file} (default: @code{"~/.mpd/tag_cache"})
|
||||||
|
The location of the music database.
|
||||||
|
|
||||||
|
@item @code{state-file} (default: @code{"~/.mpd/state"})
|
||||||
|
The location of the file that stores current MPD's state.
|
||||||
|
|
||||||
|
@item @code{sticker-file} (default: @code{"~/.mpd/sticker.sql"})
|
||||||
|
The location of the sticker database.
|
||||||
|
|
||||||
@item @code{port} (default: @code{"6600"})
|
@item @code{port} (default: @code{"6600"})
|
||||||
The port to run mpd on.
|
The port to run mpd on.
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,12 @@ (define-record-type* <mpd-configuration>
|
||||||
(default "~/Music"))
|
(default "~/Music"))
|
||||||
(playlist-dir mpd-configuration-playlist-dir
|
(playlist-dir mpd-configuration-playlist-dir
|
||||||
(default "~/.mpd/playlists"))
|
(default "~/.mpd/playlists"))
|
||||||
|
(db-file mpd-configuration-db-file
|
||||||
|
(default "~/.mpd/tag_cache"))
|
||||||
|
(state-file mpd-configuration-state-file
|
||||||
|
(default "~/.mpd/state"))
|
||||||
|
(sticker-file mpd-configuration-sticker-file
|
||||||
|
(default "~/.mpd/sticker.sql"))
|
||||||
(port mpd-configuration-port
|
(port mpd-configuration-port
|
||||||
(default "6600"))
|
(default "6600"))
|
||||||
(address mpd-configuration-address
|
(address mpd-configuration-address
|
||||||
|
@ -61,6 +67,9 @@ (define (mpd-config->file config)
|
||||||
`(("user" ,mpd-configuration-user)
|
`(("user" ,mpd-configuration-user)
|
||||||
("music_directory" ,mpd-configuration-music-dir)
|
("music_directory" ,mpd-configuration-music-dir)
|
||||||
("playlist_directory" ,mpd-configuration-playlist-dir)
|
("playlist_directory" ,mpd-configuration-playlist-dir)
|
||||||
|
("db_file" ,mpd-configuration-db-file)
|
||||||
|
("state_file" ,mpd-configuration-state-file)
|
||||||
|
("sticker_file" ,mpd-configuration-sticker-file)
|
||||||
("port" ,mpd-configuration-port)
|
("port" ,mpd-configuration-port)
|
||||||
("bind_to_address" ,mpd-configuration-address)))))
|
("bind_to_address" ,mpd-configuration-address)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue