1
0
Fork 0
nixos-config/home/mpd.nix

23 lines
526 B
Nix
Raw Normal View History

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" ];
};
}