From e83a269f21dd819d9c9a3fd67ff82a2f6db4374b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 26 May 2018 21:48:47 +0200 Subject: poke mpd --- bragi.nix | 3 ++- custom/mpd.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bragi.nix b/bragi.nix index bf4695e4..f6fb4da1 100644 --- a/bragi.nix +++ b/bragi.nix @@ -243,7 +243,8 @@ in rec { user = "mpd"; group = "audio"; }; - systemd.services."mpd".requires = [ "mpdmix0.service" "mpdmix1.service" "media-odin.mount" ]; + systemd.services."mpd".requires = [ "mpdmix0.service" "mpdmix1.service" ]; + systemd.services."mpd".after = [ "mpdmix0.service" "mpdmix1.service" ]; systemd.services."mpd".serviceConfig = { LimitMEMLOCK = "infinity"; Nice = "-5"; diff --git a/custom/mpd.nix b/custom/mpd.nix index 16657d5a..dd8a906a 100644 --- a/custom/mpd.nix +++ b/custom/mpd.nix @@ -20,7 +20,7 @@ let user "${cfg.user}" group "${cfg.group}" - ${concatMapStringsSep "\n" bindAddress cfg.network.listenAddresses} + ${concatMapStringsSep "\n" (a: "bind_to_address \"" + bindAddress a + "\"") cfg.network.listenAddresses} ${cfg.extraConfig} ''; -- cgit v1.2.3