{ config, lib, pkgs, ... }: { programs.beets = { enable = true; settings = { directory = "/data/fast/music"; plugins = "fromfilename discogs duplicates fetchart embedart badfiles lastgenre scrub"; paths = { default = "$albumartist/$album%aunique{}/$track $title"; singleton = "Singles/$artist/$title"; comp = "Compilations/$album%aunique{}/$track - $title"; "albumtype:soundtrack" = "Soundtracks/$album${aunique} ($year)/$track $title"; }; import = { copy = true; move = true; }; va_name = "Various Artists"; embedart = { ifempty = true; }; lastgenre = { auto = false; canonical = true; fallback = "unknown"; force = true; prefer_specific = true; }; fetchart = { cautious = true; sources = "filesystem coverart itunes amazon lastfm wikipedia"; }; }; }; }