{
  config,
  lib,
  pkgs,
  ...
}: {
  options.dotfiles.inputs.home-manager.programs.bat.enable =
    lib.dotfiles.mkEnableOption;

  config = lib.mkIf config.dotfiles.inputs.home-manager.programs.bat.enable {
    # TODO: Patch upstream config.programs.bat.finalPackage option.
    home.shellAliases.b = lib.getExe pkgs.bat;

    programs.bat.enable = true;
  };
}
