config/modules/home/apps/tools/bat/default.nix
2026-01-13 15:39:16 -05:00

27 lines
379 B
Nix

{
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 {
catppuccin.bat.enable = true;
programs.bat = {
enable = true;
config = {
pager = "less -FR";
};
};
};
}