blob: 7c6381d3f8ff631c05deb17c63645515172f21a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ pkgs, ... }:
{
services.mpd = {
enable = true;
package = pkgs.unstable.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"
}
'';
};
}
|