{ pkgs, lib, config, True, ... }: with lib; let cfg = config.module.programs.cli.bat; in { options = { module.programs.cli.bat = { enable = mkEnableOption ""; }; }; config = mkIf cfg.enable { programs.bat = True // { extraPackages = with pkgs.bat-extras; [ # prettybat batwatch batgrep batdiff ]; config = { wrap = "character"; }; }; }; }