{...}: { programs.beets.settings = { replaygain = { auto = true; backend = "ffmpeg"; r128_targetlevel = 89; # Re-calculate the replay gain value even for files, that already have one set. overwrite = true; }; hook = { hooks = [ { # Also generate the replaygain for the album variant (so selecting between # track and album becomes possible) event = "import"; command = "echo Remember to run 'beet replaygain --album' to generate the album replaygain values for the imported songs!"; } ]; }; }; }