[Nix-dev] Permission error when installing mpd

joachifm at fastmail.fm joachifm at fastmail.fm
Thu Feb 19 23:00:44 CET 2015


On Thu, Feb 19, 2015, at 09:28 PM, James Cook wrote:
> Hm, this sounds like a bug actually. Maybe the mkdir is running as mpd
> but the author of that .nix file expected it to run as root? (Can
> anyone contradict this?)

This is correct [1]. Until the fix hits unstable, you can set

     systemd.services.mpd.serviceConfig = { PermissionsStartOnly =
     "true"; };

in your configuration.nix to allow the preStart script to run as root
(or just run it manually, as has been suggested).

[1]: https://github.com/NixOS/nixpkgs/issues/6277


More information about the nix-dev mailing list