about summary refs log blame commit diff stats
path: root/modules/home.legacy/conf/beets/plugins/replaygain/default.nix
blob: 611f3799bc4c9ed6c6d05441e2f51a1cefd036b9 (plain) (tree)






















                                                                                                                                     
{...}: {
  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!";
        }
      ];
    };
  };
}