config/modules/home/apps/tools/bat/default.nix

28 lines
377 B
Nix
Raw Normal View History

2024-05-23 20:48:19 +00:00
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.apps.tools.bat;
in {
options.apps.tools.bat = with types; {
enable = mkBoolOpt false "Enable Bat";
};
config = mkIf cfg.enable {
programs.bat = {
enable = true;
catppuccin.enable = true;
config = {
pager = "less -FR";
};
};
};
}