nichts/modules/programs/cli/beets.nix

75 lines
1.5 KiB
Nix
Raw Normal View History

2024-07-14 13:31:28 +02:00
{
config,
lib,
...
}: let
2024-07-21 15:11:55 +02:00
cfg = config.modules.usrEnv.programs.media.beets;
2024-07-14 13:31:28 +02:00
inherit (config.modules.other.system) username;
2024-07-21 17:36:55 +02:00
inherit (config.modules.usrEnv.services.media.mpd) musicDirectory;
2024-07-21 15:11:55 +02:00
inherit (lib) mkIf;
2024-07-14 13:31:28 +02:00
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.beets = {
enable = true;
settings = {
ui.color = true;
directory = musicDirectory;
library = "${musicDirectory}/musiclibrary.db";
clutter = [
"Thumbs.DB"
".DS_Store"
".directory"
];
plugins = [
"mpdupdate"
"lyrics"
"thumbnails"
"fetchart"
"embedart"
"chroma"
"fromfilename"
"lastgenre"
"duplicates"
"edit"
"replaygain"
"scrub"
];
import = {
move = true;
timid = true;
detail = true;
bell = true;
write = true;
};
mpd = {
host = "localhost";
port = 6600;
};
lyrics = {
auto = true;
};
thumbnails.auto = true;
fetchart.auto = true;
embedart = {
auto = true;
remove_art_file = true;
};
acousticbrainz.auto = true;
chroma.auto = true;
replaygain.backend = "gstreamer";
};
};
};
};
}