mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
72 lines
2.1 KiB
Nix
72 lines
2.1 KiB
Nix
{ config, lib, pkgs, witch, ... }:
|
|
|
|
{
|
|
config = lib.mkIf config.deploy.profile.gui {
|
|
programs.ncmpcpp = {
|
|
enable = true;
|
|
mpdMusicDir = "/home/kat/music";
|
|
settings = {
|
|
visualizer_data_source = "/tmp/mpd.fifo";
|
|
visualizer_output_name = "my_fifo";
|
|
visualizer_in_stereo = "yes";
|
|
visualizer_type = "spectrum";
|
|
visualizer_look = "+|";
|
|
user_interface = "alternative";
|
|
colors_enabled = "yes";
|
|
discard_colors_if_item_is_selected = "no";
|
|
header_window_color = "250";
|
|
volume_color = "250";
|
|
state_line_color = "cyan";
|
|
state_flags_color = "cyan";
|
|
statusbar_color = "yellow";
|
|
progressbar_color = "black";
|
|
progressbar_elapsed_color = "blue";
|
|
playlist_display_mode = "classic";
|
|
song_columns_list_format =
|
|
"(3f)[cyan]{n} (40)[default]{t|f} (25)[red]{a} (30)[blue]{b} (4f)[cyan]{l}";
|
|
now_playing_prefix = "$b";
|
|
song_list_format =
|
|
"$1$9%l$1$9 $8¦$9 $6%a$9 $8¦$9 $5%b$9 $R$1$9%t$1$9 $8¦$9 $7%n$9";
|
|
song_library_format = "{%n > }{%t}|{%f}";
|
|
song_status_format = "{%a - }{%t - }{%b}";
|
|
titles_visibility = "no";
|
|
header_visibility = "no";
|
|
statusbar_visibility = "no";
|
|
now_playing_suffix = "$8$/b";
|
|
progressbar_look = "▄▄ ";
|
|
};
|
|
};
|
|
programs.beets = {
|
|
enable = true;
|
|
package = pkgs.unstable.beets;
|
|
settings = {
|
|
directory = "~/music";
|
|
library = "~/.local/share/beets.db";
|
|
plugins = lib.concatStringsSep " " [
|
|
"mpdstats"
|
|
"mpdupdate"
|
|
"duplicates"
|
|
"chroma"
|
|
];
|
|
};
|
|
};
|
|
services.mpd = {
|
|
enable = true;
|
|
network.startWhenNeeded = true;
|
|
musicDirectory = "/home/kat/music";
|
|
extraConfig = ''
|
|
audio_output {
|
|
type "fifo"
|
|
name "my_fifo"
|
|
path "/tmp/mpd.fifo"
|
|
format "44100:16:2"
|
|
}
|
|
|
|
audio_output {
|
|
type "pulse"
|
|
name "speaker"
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|