aboutsummaryrefslogtreecommitdiff
path: root/home/dot_config/mpd
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-08-02 14:48:29 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-08-02 14:48:29 +0200
commite43eb1177872f52e949fb5f0f93396ed94b0d093 (patch)
tree78b73af6a989fa2996d71b112e161b70d35081ef /home/dot_config/mpd
parent2f14a896e4b897bd747c24d7ad8e9e7bb3237d03 (diff)
move to chezmoi
Diffstat (limited to 'home/dot_config/mpd')
-rw-r--r--home/dot_config/mpd/mpd.conf.tmpl45
1 files changed, 45 insertions, 0 deletions
diff --git a/home/dot_config/mpd/mpd.conf.tmpl b/home/dot_config/mpd/mpd.conf.tmpl
new file mode 100644
index 0000000..affaec1
--- /dev/null
+++ b/home/dot_config/mpd/mpd.conf.tmpl
@@ -0,0 +1,45 @@
+{{- $host := dig "mpd" "host" false . -}}
+{{- $base_dir := dig "mpd" "base_dir" "/mnt/mpd" . -}}
+
+{{- $music_directory := "https://media.pipeframe.xyz/music" -}}
+{{- if $host -}}
+{{- $music_directory = printf "%s/music" $base_dir -}}
+{{- end -}}
+
+music_directory "{{ $music_directory }}"
+playlist_directory "{{ $base_dir }}/playlists"
+
+pid_file "{{ $base_dir }}/mpd.pid"
+state_file "{{ $base_dir }}/mpdstate"
+{{- if $host }}
+db_file "{{ $base_dir }}/mpd.db"
+{{- end }}
+
+bind_to_address "{{ ternary "*" "0.0.0.0" $host }}"
+port "6600"
+restore_paused "yes"
+{{- if $host }}
+auto_update "yes"
+user "{{ .chezmoi.username }}"
+group "{{ .chezmoi.group }}"
+default_permissions "read,add,control,admin"
+{{- end }}
+
+replaygain "track"
+replaygain_preamp "6"
+{{- if not $host }}
+
+database {
+ plugin "proxy"
+ host "pipeframe.xyz"
+}
+{{- end }}
+
+audio_output {
+ type "pulse"
+ name "desktop output"
+}
+
+input_cache {
+ size "512 MB"
+}