diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-21 21:00:07 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-21 21:00:07 +0200 |
commit | 4fb01313688d7cafe63f224fc42b3cb1d6f7b60e (patch) | |
tree | 0f1307049d8afbdb456e39be249e7c494aa6ff4e /custom | |
parent | bb196fb98eff82ddf81c0d8f7c2beba508bd524e (diff) | |
download | nixos-4fb01313688d7cafe63f224fc42b3cb1d6f7b60e.tar nixos-4fb01313688d7cafe63f224fc42b3cb1d6f7b60e.tar.gz nixos-4fb01313688d7cafe63f224fc42b3cb1d6f7b60e.tar.bz2 nixos-4fb01313688d7cafe63f224fc42b3cb1d6f7b60e.tar.xz nixos-4fb01313688d7cafe63f224fc42b3cb1d6f7b60e.zip |
…
Diffstat (limited to 'custom')
-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; |