about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-10 22:18:12 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-10 22:18:12 +0200
commita8e06cce5e2ee0aeeb8cf54c7515b6a3f3afcd66 (patch)
tree3216865e54f271e2ac23c2389e4f47384f3217e4
parentfeat(home/{beets, mpd}): Setup further plugins (diff)
downloadnixos-config-a8e06cce5e2ee0aeeb8cf54c7515b6a3f3afcd66.tar.gz
nixos-config-a8e06cce5e2ee0aeeb8cf54c7515b6a3f3afcd66.zip
feat(home/beets): Add a hook to also calculate album replaygain on import
Diffstat (limited to '')
-rw-r--r--modules/home/conf/beets/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix
index ef969dc0..84f8618d 100644
--- a/modules/home/conf/beets/default.nix
+++ b/modules/home/conf/beets/default.nix
@@ -52,7 +52,14 @@
         force = true;
       };
       hook = {
-        hooks = [];
+        hooks = [
+          {
+            # Also generate the replaygain for the album variant (so selecting between
+            # track and album becomes possible)
+            event = "import";
+            command = "beet replaygain --album";
+          }
+        ];
       };
       replaygain = {
         auto = true;