summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bragi.nix3
-rw-r--r--custom/mpd.nix2
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 {
243 user = "mpd"; 243 user = "mpd";
244 group = "audio"; 244 group = "audio";
245 }; 245 };
246 systemd.services."mpd".requires = [ "mpdmix0.service" "mpdmix1.service" "media-odin.mount" ]; 246 systemd.services."mpd".requires = [ "mpdmix0.service" "mpdmix1.service" ];
247 systemd.services."mpd".after = [ "mpdmix0.service" "mpdmix1.service" ];
247 systemd.services."mpd".serviceConfig = { 248 systemd.services."mpd".serviceConfig = {
248 LimitMEMLOCK = "infinity"; 249 LimitMEMLOCK = "infinity";
249 Nice = "-5"; 250 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
20 user "${cfg.user}" 20 user "${cfg.user}"
21 group "${cfg.group}" 21 group "${cfg.group}"
22 22
23 ${concatMapStringsSep "\n" bindAddress cfg.network.listenAddresses} 23 ${concatMapStringsSep "\n" (a: "bind_to_address \"" + bindAddress a + "\"") cfg.network.listenAddresses}
24 24
25 ${cfg.extraConfig} 25 ${cfg.extraConfig}
26 ''; 26 '';