diff --git a/hosts/pinwheel/modules/picard/default.nix b/hosts/pinwheel/modules/picard/default.nix new file mode 100644 index 0000000..26bed4c --- /dev/null +++ b/hosts/pinwheel/modules/picard/default.nix @@ -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 + ''; + }; +}