[Nix-dev] Permission error when installing mpd

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Fri Feb 20 04:11:09 CET 2015


On 02/19/2015 09:40 AM, Nikita Karetnikov wrote:
>> Looking at the source (nixos/modules/services/audio/mpd.nix), it looks
>> like the mpd service is designed to run as the mpd user. If you are
>> willing to go with that design, I guess you should not set
>> services.mpd.dataDir, and make sure the mpd user has read access to
>> your music directory. (It tries to create /home/nikita because that's
>> where its dataDir is supposed to go.)
> 
> I'm willing to go with anything.  I've tried setting just 
> 
>   mpd.enable = true;
> 
> but it has a similar permission-related problem.
> 
> Could anyone share the configuration that's known to work, so I could
> forget about it?
> 
> 

I merely have ‘mpd’ in my systemPackages and start it myself from my
user. That's also the only way I check it works when updating mpd versions.


-- 
Mateusz K.


More information about the nix-dev mailing list