about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/beets/plugins/replaygain/default.nix
blob: 611f3799bc4c9ed6c6d05441e2f51a1cefd036b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{...}: {
  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!";
        }
      ];
    };
  };
}