users/kat/media/mpd: IPv6 support

This commit is contained in:
kat witch 2021-05-07 21:38:27 +01:00
parent dcc783488c
commit 09b9983af1
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 23 additions and 22 deletions

View file

@ -6,36 +6,36 @@
package = pkgs.mpd-youtube-dl;
network = {
startWhenNeeded = true;
listenAddress = "::";
listenAddress = "[::]";
};
musicDirectory = "/home/kat/media-share/music";
extraConfig = ''
max_output_buffer_size "32768"
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
audio_output {
type "pulse"
name "speaker"
}
audio_output {
type "pulse"
name "speaker"
}
audio_output {
type "httpd"
name "httpd-high"
encoder "opus"
bitrate "96000"
port "32101"
max_clients "4"
format "48000:16:2"
always_on "yes"
tags "yes"
}
'';
audio_output {
bind_to_address "[::]"
type "httpd"
name "httpd-high"
encoder "opus"
bitrate "96000"
port "32101"
max_clients "4"
format "48000:16:2"
always_on "yes"
tags "yes"
}
'';
};
}