48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.beets = {
|
|
enable = true;
|
|
# In 25.11, beets plugins are enabled via beetsPackages or the default package
|
|
# The default beets package includes common plugins
|
|
package = pkgs.beets;
|
|
settings = {
|
|
directory = "/tank/media/music";
|
|
library = "/home/anish/.local/share/beets/library.db";
|
|
|
|
import = {
|
|
move = true; # Move files from new-music to library
|
|
write = true; # Write tags to files
|
|
log = "/tank/new-music/beets-import.log";
|
|
incremental = true; # Skip already-imported directories
|
|
};
|
|
|
|
# Path format for organizing music
|
|
paths = {
|
|
default = "$albumartist/$album%aunique{}/$track $title";
|
|
singleton = "Non-Album/$artist/$title";
|
|
comp = "Compilations/$album%aunique{}/$track $title";
|
|
};
|
|
|
|
plugins = [
|
|
"fetchart"
|
|
"embedart"
|
|
"lastgenre"
|
|
"duplicates"
|
|
"missing"
|
|
];
|
|
|
|
fetchart = {
|
|
auto = true;
|
|
};
|
|
|
|
embedart = {
|
|
auto = true;
|
|
};
|
|
|
|
lastgenre = {
|
|
auto = true;
|
|
};
|
|
};
|
|
};
|
|
}
|