2020-05-05 23:40:57 +00:00
|
|
|
{ pkgs, config, ... }: {
|
|
|
|
services = {
|
|
|
|
mpd = {
|
|
|
|
enable = true;
|
|
|
|
network.listenAddress = "::1";
|
|
|
|
musicDirectory = "${config.home.homeDirectory}/media/audio";
|
|
|
|
extraConfig = ''
|
|
|
|
audio_output {
|
|
|
|
type "pulse"
|
|
|
|
name "Pulseaudio"
|
|
|
|
server "localhost"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
mpdris2.enable = true;
|
|
|
|
};
|
|
|
|
systemd.user.services.mpdris2 = {
|
2020-05-11 21:34:36 +00:00
|
|
|
Unit.Type = "dbus";
|
2020-05-05 23:40:57 +00:00
|
|
|
Unit.Requires = [ "dbus.service" ];
|
|
|
|
Install.WantedBy = [ "default.target" ];
|
|
|
|
};
|
|
|
|
}
|