niksos/modules/services/mpd.nix
2023-09-08 16:10:15 +02:00

26 lines
509 B
Nix

_: {
services.mpd = {
enable = true;
musicDirectory = "~/Music";
extraConfig = ''
audio_output {
type "pipewire"
name "PipeWire Sound Server"
}
'';
};
services.mpd-mpris = {
enable = true;
mpd = {
host = "127.0.0.1";
network = "unix";
port = 6600;
useLocal = true;
};
};
services.playerctld = {
enable = true;
};
}