17 lines
470 B
Nix
17 lines
470 B
Nix
{ 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
|
|
'';
|
|
};
|
|
}
|