This commit is contained in:
2023-12-19 02:55:02 +00:00
parent ec24880f1b
commit 57b29a4220
7 changed files with 76 additions and 10 deletions

View File

@@ -18,6 +18,7 @@ in {
config = mkIf cfg.enable {
home.packages = [
pkgs.ffmpeg # for replaygain
];
sops = {
@@ -25,8 +26,10 @@ in {
path = "${config.xdg.configHome}/beets/discogs_token.json";
};
};
programs.beets = {
enable = true;
package = (pkgs.beets.override { pluginOverrides = { originquery = {enable = true; propagatedBuildInputs = [ pkgs.beets-originquery ]; }; };});
settings = {
album_fields = {
artist_grouping = ''
@@ -128,10 +131,26 @@ in {
format_item = "$albumartist - $album [$albumtype]$atype: $track/$tracktotal $title";
};
musicbrainz = {
extra_tags= ["year" "catalognum" "country" "media" "label"];
pass = "7ANCLPczDNFn6Sf65vdZ";
user = "shapechecker";
};
original_date = true;
originquery = {
origin_file = "origin.yaml";
tag_patterns = {
media = ''$.Media'';
year = ''$."Edition year"'';
label = ''$."Record label"'';
catalognum = ''$."Catalog number"'';
albumdisambig = ''$.Edition'';
};
use_origin_on_conflict = true;
};
paths = {
"albumtype:soundtrack" = "Soundtracks/$albumartist - $album%aunique{} ($year)/$myDisc$track - $artist - $title";
comp = "Compilations/$albumartist/($year) $album%aunique{}/$myDisc$track - $artist - $title";
@@ -151,6 +170,8 @@ in {
"mbcollection"
"replaygain"
"info"
"mbsync"
"originquery"
];
replaygain = {
backend = "ffmpeg";