nixos-config/home-manager/modules/bat/default.nix

37 lines
745 B
Nix

{
pkgs,
config,
lib,
...
}:
with lib;
let
cfg = config.eboskma.programs.bat;
in
{
options.eboskma.programs.bat = {
enable = mkEnableOption "enable bat";
};
config = mkIf cfg.enable {
programs.bat = {
enable = true;
themes = {
catppuccin = {
src = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "bat";
rev = "b19bea35a85a32294ac4732cad5b0dc6495bed32";
sha256 = "POoW2sEM6jiymbb+W/9DKIjDM1Buu1HAmrNP0yC2JPg=";
};
file = "themes/Catppuccin Mocha.tmTheme";
};
};
config = {
theme = "catppuccin";
pager = "less -FR";
map-syntax = [ "*.heex:HTML (EEx)" ];
};
};
};
}