From 4fb01313688d7cafe63f224fc42b3cb1d6f7b60e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 21 Apr 2018 21:00:07 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/mpd.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'custom') diff --git a/custom/mpd.nix b/custom/mpd.nix index fceb62fe..f8c7616c 100644 --- a/custom/mpd.nix +++ b/custom/mpd.nix @@ -20,8 +20,7 @@ let user "${cfg.user}" group "${cfg.group}" - ${optionalString (cfg.network.listenAddress != "any") ''bind_to_address "${cfg.network.listenAddress}"''} - ${optionalString (cfg.network.port != 6600) ''port "${toString cfg.network.port}"''} + ${concatMapStringsSep "\n" bindAddress cfg.network.listenAddresese} ${cfg.extraConfig} ''; @@ -171,7 +170,7 @@ in { systemd.sockets.mpd = mkIf cfg.startWhenNeeded { description = "Music Player Daemon Socket"; wantedBy = [ "sockets.target" ]; - listenStreams = map listenStream cfg.listenAddresses; + listenStreams = map listenStream cfg.network.listenAddresses; socketConfig = { Backlog = 5; KeepAlive = true; -- cgit v1.2.3