dotfiles.nix/home-manager/sajenim/features/desktop/mpd.nix

26 lines
538 B
Nix
Raw Normal View History

2024-08-08 09:02:42 +08:00
{pkgs, ...}: {
2024-02-13 22:56:37 +08:00
services.mpd = {
enable = true;
2024-07-08 21:30:08 +08:00
musicDirectory = "nfs://viridian.kanto.dev/srv/multimedia/library/music";
2024-02-13 22:56:37 +08:00
dbFile = null;
extraConfig = ''
database {
plugin "proxy"
2024-07-08 21:30:08 +08:00
host "viridian.kanto.dev"
2024-02-13 22:56:37 +08:00
port "6600"
}
audio_output {
type "pulse"
name "PulseAudio"
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;
};
}