nix-config/dots/mpd/default.nix

35 lines
646 B
Nix
Raw Normal View History

2024-11-10 17:54:08 -05:00
{ 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"
}
'';
};
}