aboutsummaryrefslogtreecommitdiffstats
path: root/nichijou
diff options
context:
space:
mode:
authorRenken <renken@shione.net>2022-09-09 16:28:03 +0200
committerRenken <renken@shione.net>2022-09-09 16:28:03 +0200
commita1ec19255cc45f7ddf56d41d0f931d77215566ed (patch)
tree64e468460d176b66e6b1807dacdc6c112a2ff436 /nichijou
parente03de7eda440aec21a806b53ffd19e4ec5d46fc1 (diff)
downloadshione-a1ec19255cc45f7ddf56d41d0f931d77215566ed.tar.gz
shione-a1ec19255cc45f7ddf56d41d0f931d77215566ed.zip
home: configure mpd
Diffstat (limited to 'nichijou')
-rw-r--r--nichijou/home/config/mpd/mpd.conf28
-rw-r--r--nichijou/home/mpd.scm14
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"))))))