summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-26 21:48:47 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-26 21:48:47 +0200
commite83a269f21dd819d9c9a3fd67ff82a2f6db4374b (patch)
tree8a9eb722ed4b6d716adf4d0b236001b763172779
parent8e9de78b5bcbe4d510f2b7a5576bdaa58619370c (diff)
downloadnixos-e83a269f21dd819d9c9a3fd67ff82a2f6db4374b.tar
nixos-e83a269f21dd819d9c9a3fd67ff82a2f6db4374b.tar.gz
nixos-e83a269f21dd819d9c9a3fd67ff82a2f6db4374b.tar.bz2
nixos-e83a269f21dd819d9c9a3fd67ff82a2f6db4374b.tar.xz
nixos-e83a269f21dd819d9c9a3fd67ff82a2f6db4374b.zip
poke mpd
-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 '';