26 lines
546 B
Nix
26 lines
546 B
Nix
{pkgs, ...}: {
|
|
services.mpd = {
|
|
enable = true;
|
|
musicDirectory = "nfs://viridian.home.arpa/srv/multimedia/library/music";
|
|
dbFile = null;
|
|
extraConfig = ''
|
|
database {
|
|
plugin "proxy"
|
|
host "viridian.home.arpa"
|
|
port "6600"
|
|
}
|
|
|
|
audio_output {
|
|
type "pipewire"
|
|
name "pipewire server"
|
|
server "127.0.0.1" # MPD must connect to the local sound server
|
|
}
|
|
'';
|
|
};
|
|
|
|
services.mpd-discord-rpc = {
|
|
enable = true;
|
|
package = pkgs.unstable.mpd-discord-rpc;
|
|
};
|
|
}
|