2023-05-25 15:44:15 +01:00
|
|
|
{ ... }: {
|
2022-08-07 16:37:11 +01:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
musicDirectory = "/mnt/hdd/Music";
|
|
|
|
extraConfig = ''
|
|
|
|
auto_update "yes"
|
|
|
|
restore_paused "yes"
|
2023-05-10 13:37:18 +01:00
|
|
|
|
2023-04-12 23:27:05 +01:00
|
|
|
replaygain "track"
|
2022-08-07 16:37:11 +01:00
|
|
|
|
|
|
|
audio_output {
|
2022-12-20 09:46:12 +00:00
|
|
|
type "pipewire"
|
2022-08-07 16:37:11 +01:00
|
|
|
name "MPD PipeWire"
|
|
|
|
}
|
|
|
|
|
|
|
|
audio_output {
|
|
|
|
type "fifo"
|
|
|
|
name "my_fifo"
|
|
|
|
path "/tmp/mpd.fifo"
|
|
|
|
format "44100:16:2"
|
|
|
|
}
|
|
|
|
|
|
|
|
audio_output {
|
|
|
|
type "httpd"
|
|
|
|
name "FLAC Stream"
|
|
|
|
encoder "flac"
|
|
|
|
bitrate "128000"
|
|
|
|
port "8000"
|
|
|
|
format "44100:16:2"
|
|
|
|
always_on "yes"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
services.mpd-discord-rpc = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
id = 474605546457137157;
|
|
|
|
hosts = [ "localhost:6600" ];
|
|
|
|
format = {
|
|
|
|
details = "$title ($album)";
|
|
|
|
state = "by $artist";
|
|
|
|
timestamp = "elapsed";
|
|
|
|
large_image = "mpd_large";
|
|
|
|
small_image = "";
|
|
|
|
large_text = "Music Player Daemon";
|
|
|
|
small_text = "";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.ncmpcpp = {
|
|
|
|
enable = true;
|
2023-04-05 10:36:45 +01:00
|
|
|
|
2022-08-07 16:37:11 +01:00
|
|
|
settings = {
|
|
|
|
visualizer_data_source = "/tmp/mpd.fifo";
|
|
|
|
visualizer_output_name = "my_fifo";
|
|
|
|
visualizer_in_stereo = false;
|
|
|
|
visualizer_type = "spectrum";
|
2023-05-17 19:46:17 +01:00
|
|
|
visualizer_look = "+│";
|
2022-08-07 16:37:11 +01:00
|
|
|
|
|
|
|
mouse_support = false;
|
|
|
|
|
|
|
|
ask_before_clearing_playlists = false;
|
|
|
|
|
|
|
|
user_interface = "alternative";
|
|
|
|
alternative_header_first_line_format = "$5{%a}$0";
|
|
|
|
alternative_header_second_line_format = "$7{%t}|{%f}$0";
|
|
|
|
progressbar_look = "─╼ ";
|
|
|
|
|
2022-10-03 23:21:40 +01:00
|
|
|
song_columns_list_format =
|
|
|
|
"(25)[5]{a:artist} (3f)[5]{n: } (50)[cyan]{t|f:title} (5)[cyan]{lr:duration}";
|
2022-08-07 16:37:11 +01:00
|
|
|
playlist_display_mode = "columns";
|
|
|
|
browser_display_mode = "columns";
|
|
|
|
search_engine_display_mode = "columns";
|
|
|
|
playlist_editor_display_mode = "columns";
|
|
|
|
|
|
|
|
colors_enabled = true;
|
|
|
|
discard_colors_if_item_is_selected = true;
|
|
|
|
|
|
|
|
main_window_color = "yellow";
|
2023-03-19 23:27:44 +00:00
|
|
|
visualizer_color = "yellow";
|
2022-08-07 16:37:11 +01:00
|
|
|
header_window_color = "yellow";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services.mpdris2 = {
|
|
|
|
enable = true;
|
|
|
|
notifications = true;
|
|
|
|
multimediaKeys = false;
|
|
|
|
};
|
|
|
|
}
|