[Nix-dev] Permission error when installing mpd

Nikita Karetnikov nikita at karetnikov.org
Thu Feb 19 07:22:50 CET 2015


I've tried various options, but mpd always fails with a permission error.
Here's one example:

  services.mpd.enable = true;
  services.mpd.dataDir = "/home/nikita/dotfiles/mpd/.mpd";
  services.mpd.musicDirectory = "/home/nikita/music";

Both directories exist.

$ journalctl -u mpd.service

Feb 19 09:11:22 mu systemd[1]: Starting Music Player Daemon...
Feb 19 09:11:22 mu systemd[1]: mpd.service: control process exited, code=exited status=1
Feb 19 09:11:22 mu systemd[1]: Failed to start Music Player Daemon.
Feb 19 09:11:22 mu systemd[1]: Unit mpd.service entered failed state.
Feb 19 09:11:22 mu systemd[1]: mpd.service failed.
Feb 19 09:11:22 mu mpd-pre-start[15264]: mkdir: cannot create directory ‘/home/nikita’: Permission denied

Why is it even trying to create "/home/nikita"?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150219/727e6960/attachment.bin 


More information about the nix-dev mailing list