home: configure mpd
This commit is contained in:
parent
e03de7eda4
commit
a1ec19255c
2 changed files with 42 additions and 0 deletions
28
nichijou/home/config/mpd/mpd.conf
Normal file
28
nichijou/home/config/mpd/mpd.conf
Normal 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
14
nichijou/home/mpd.scm
Normal 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"))))))
|
Loading…
Reference in a new issue