diff options
Diffstat (limited to 'nichijou')
-rw-r--r-- | nichijou/home/config/mpd/mpd.conf | 28 | ||||
-rw-r--r-- | nichijou/home/mpd.scm | 14 |
2 files changed, 42 insertions, 0 deletions
diff --git a/nichijou/home/config/mpd/mpd.conf b/nichijou/home/config/mpd/mpd.conf new file mode 100644 index 0000000..24edf9b --- /dev/null +++ b/nichijou/home/config/mpd/mpd.conf @@ -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" diff --git a/nichijou/home/mpd.scm b/nichijou/home/mpd.scm new file mode 100644 index 0000000..e935ed7 --- /dev/null +++ b/nichijou/home/mpd.scm @@ -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")))))) |