From 09b9983af17e52c42c1c77d612463a2c0641a48d Mon Sep 17 00:00:00 2001 From: kat witch Date: Fri, 7 May 2021 21:38:27 +0100 Subject: [PATCH] users/kat/media/mpd: IPv6 support --- profiles/gui/mpd.nix | 1 + users/kat/media/mpd.nix | 44 ++++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/profiles/gui/mpd.nix b/profiles/gui/mpd.nix index 8a9f4f34..1e5ae819 100644 --- a/profiles/gui/mpd.nix +++ b/profiles/gui/mpd.nix @@ -4,4 +4,5 @@ with lib; { katnet.private.tcp.ports = [ 6600 32101 ]; + katnet.public.tcp.ports = [ 6600 32101 ]; } diff --git a/users/kat/media/mpd.nix b/users/kat/media/mpd.nix index 43b070d6..62c05e6f 100644 --- a/users/kat/media/mpd.nix +++ b/users/kat/media/mpd.nix @@ -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" + } + ''; }; }