2024-01-11 11:26:46 +01:00
|
|
|
{ lib
|
|
|
|
, config
|
|
|
|
, pkgs
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
with lib;
|
2024-03-20 08:58:05 +01:00
|
|
|
with lib.metacfg; let
|
|
|
|
cfg = config.metacfg.cli-apps.bat;
|
2024-01-11 11:26:46 +01:00
|
|
|
in
|
|
|
|
{
|
2024-03-20 08:58:05 +01:00
|
|
|
options.metacfg.cli-apps.bat = {
|
2024-01-11 11:26:46 +01:00
|
|
|
enable = mkEnableOption "bat";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.bat = {
|
|
|
|
enable = true;
|
|
|
|
config.theme = "ansi";
|
|
|
|
extraPackages = with pkgs.bat-extras; [ batdiff batman batgrep batwatch ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|