nix-config/home-manager/sajenim/features/cli/mpd.nix
jasmine b180fb4481
feat(discord): add BetterDiscord with gruvbox material dark theme
Restore Discord with OpenASAR overlay and BetterDiscord CSS theming.
Custom gruvbox material dark medium palette with proper read/unread
channel distinction and minimal UI tweaks. Add mpd-discord-rpc for
music rich presence.
2026-02-01 19:24:45 +08:00

41 lines
852 B
Nix

{pkgs, ...}: {
# Install some applications for managing mpd
home.packages = with pkgs; [
mpc
ncmpcpp
];
# Setup our mpd client service
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
}
'';
};
# Discord rich presence for MPD
services.mpd-discord-rpc = {
enable = true;
settings = {
hosts = ["localhost:6600"];
format = {
details = "$title";
state = "$artist - $album";
timestamp = "elapsed";
};
};
};
}