diff options
-rw-r--r-- | custom/mpd.nix | 5 |
1 files changed, 2 insertions, 3 deletions
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 | |||
20 | user "${cfg.user}" | 20 | user "${cfg.user}" |
21 | group "${cfg.group}" | 21 | group "${cfg.group}" |
22 | 22 | ||
23 | ${optionalString (cfg.network.listenAddress != "any") ''bind_to_address "${cfg.network.listenAddress}"''} | 23 | ${concatMapStringsSep "\n" bindAddress cfg.network.listenAddresese} |
24 | ${optionalString (cfg.network.port != 6600) ''port "${toString cfg.network.port}"''} | ||
25 | 24 | ||
26 | ${cfg.extraConfig} | 25 | ${cfg.extraConfig} |
27 | ''; | 26 | ''; |
@@ -171,7 +170,7 @@ in { | |||
171 | systemd.sockets.mpd = mkIf cfg.startWhenNeeded { | 170 | systemd.sockets.mpd = mkIf cfg.startWhenNeeded { |
172 | description = "Music Player Daemon Socket"; | 171 | description = "Music Player Daemon Socket"; |
173 | wantedBy = [ "sockets.target" ]; | 172 | wantedBy = [ "sockets.target" ]; |
174 | listenStreams = map listenStream cfg.listenAddresses; | 173 | listenStreams = map listenStream cfg.network.listenAddresses; |
175 | socketConfig = { | 174 | socketConfig = { |
176 | Backlog = 5; | 175 | Backlog = 5; |
177 | KeepAlive = true; | 176 | KeepAlive = true; |