{
  lib,
  pkgs,
  config,
  ...
}: {
  programs.beets.settings.play = {
    command = "${lib.getExe pkgs.mpc} $args add";
    relative_to = config.services.mpd.musicDirectory;

    # Run the command with the returned paths as arguments
    raw = true;
  };
}