From 0a5754541bb01e96021ca7ee74f1256a8ee68bc4 Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 21 Dec 2024 15:32:13 -0500 Subject: initial commit to self-hosted git --- users/tdback/modules/mpd/default.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 users/tdback/modules/mpd/default.nix (limited to 'users/tdback/modules/mpd') diff --git a/users/tdback/modules/mpd/default.nix b/users/tdback/modules/mpd/default.nix new file mode 100644 index 0000000..d7338cb --- /dev/null +++ b/users/tdback/modules/mpd/default.nix @@ -0,0 +1,34 @@ +{ pkgs, ... }: +{ + services.mpd = { + enable = true; + package = pkgs.mpd; + + network = { + listenAddress = "127.0.0.1"; + port = 6600; + }; + + musicDirectory = "~/media/music"; + + extraConfig = '' + log_file "syslog" + max_output_buffer_size "16384" + + restore_paused "yes" + auto_update "yes" + + audio_output { + type "pulse" + name "pulseaudio" + } + + audio_output { + type "fifo" + name "Visualizer feed" + path "/tmp/mpd.fifo" + format "44100:16:2" + } + ''; + }; +} -- cgit v1.2.3