54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.beets = {
|
|
enable = true;
|
|
package = pkgs.beets.override {
|
|
pluginOverrides = {
|
|
fetchart.enable = true;
|
|
embedart.enable = true;
|
|
lastgenre.enable = true;
|
|
duplicates.enable = true;
|
|
missing.enable = true;
|
|
};
|
|
};
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
}
|