From a953ed57c962a5f304a264e4f651556c849f0d9f Mon Sep 17 00:00:00 2001 From: Domen Kozar Date: Thu, 21 Feb 2013 23:05:40 +0100 Subject: [PATCH] mkdir musicDirecotry for mpd before startnig the service --- modules/services/audio/mpd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/audio/mpd.nix b/modules/services/audio/mpd.nix index 85a87dfe845c..c6ae82206261 100644 --- a/modules/services/audio/mpd.nix +++ b/modules/services/audio/mpd.nix @@ -74,6 +74,7 @@ in { wantedBy = [ "multi-user.target" ]; path = [ pkgs.mpd ]; script = "mpd --no-daemon ${mpdConf}"; + preStart = "mkdir -p ${cfg.dataDir} && chown -R mpd:mpd ${cfg.dataDir}"; }; users.extraUsers.mpd = {