pinwheel: Add picard with the replaygain2 plugin

This commit is contained in:
Alexander Heldt committed 2026-11-16 22:03:18 +01:00
1 parent 66f65a1131
commit a52494e39b
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
home-manager.users.alex = { lib, ... }: {
home.packages = [
pkgs.picard
pkgs.rsgain
];
home.activation.picardReplayGainPlugin = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
if ! ${pkgs.picard}/bin/picard-cli plugins info replaygain2 > /dev/null 2>&1; then
run ${pkgs.picard}/bin/picard-cli plugins install replaygain2 \
|| warnEcho "Failed to install Picard plugin replaygain2"
fi
'';
};
}