home: configure mpd

This commit is contained in:
Renken 2022-09-09 16:28:03 +02:00
parent e03de7eda4
commit a1ec19255c
Signed by: renken
GPG key ID: 1F2BB159B645E575
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,28 @@
music_directory "~/mu"
playlist_directory "~/.config/mpd/playlists"
db_file "~/.config/mpd/mpd.db"
log_file "~/.config/mpd/mpd.log"
pid_file "~/.config/mpd/mpd.pid"
state_file "~/.config/mpd/mpdstate"
sticker_file "~/.config/mpd/sticker.sql"
audio_output {
type "pulse"
name "pulseaudio"
#mixer_type "software"
#mixer_control "PCM"
}
audio_output {
type "httpd"
name "HTTP Stream"
encoder "vorbis" # optional, vorbis or lame
port "8001"
quality "5.0" # do not define if bitrate is defined
# bitrate "320" # do not define if quality is defined
# format "44100:16:1"
}
filesystem_charset "UTF-8"
bind_to_address "0.0.0.0"

14
nichijou/home/mpd.scm Normal file
View file

@ -0,0 +1,14 @@
(define-module (nichijou home mpd)
#:use-module (gnu home services)
#:use-module (gnu packages mpd)
#:use-module (gnu services)
#:use-module (guix gexp))
(define-public packages
(list mpd))
;; TODO: Write MPD home service?
(define-public services
(list (simple-service 'nichijou-mpd-config home-files-service-type
`((".config/mpd/mpd.conf" ,(local-file
"config/mpd/mpd.conf"))))))