Files
garandos/modules/home/bat.nix
2025-09-13 23:16:22 +02:00

27 lines
574 B
Nix

{ pkgs
, lib
, ...
}: {
programs.bat = {
enable = true;
config = {
pager = "less -FR";
# other styles available and cane be combined
# style = "numbers,changes,headers,rule,grid";
style = "full";
# Bat has other thems as well
# ansi,Catppuccin,base16,base16-256,GitHub,Nord,etc
theme = lib.mkForce "Dracula";
};
extraPackages = with pkgs.bat-extras; [
batman
batpipe
batgrep
];
};
home.sessionVariables = {
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
MANROFFOPT = "-c";
};
}