diff --git a/config/home-manager/terminal/programs/bat.nix b/config/home-manager/terminal/programs/bat.nix index 95aa1c1..4a7e8eb 100644 --- a/config/home-manager/terminal/programs/bat.nix +++ b/config/home-manager/terminal/programs/bat.nix @@ -1,10 +1,19 @@ -_: { +{pkgs, ...}: { programs.bat = { enable = true; config.theme = "base16"; }; - home.sessionVariables = { - MANPAGER = "sh -c 'col -bx | bat -l man -p'"; - MANROFFOPT = "-c"; + + home = { + sessionVariables = { + MANPAGER = "sh -c 'col -bx | bat --language man' "; + MANROFFOPT = "-c"; + }; + + packages = with pkgs.bat-extras; [ + batman + ]; + + shellAliases.man = "batman"; }; }