nixcfg/modules/home/cli-apps/bat/default.nix
Harald Hoyer 900f95169f nix fmt
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-11-19 10:31:29 +01:00

30 lines
419 B
Nix

{
lib,
config,
pkgs,
...
}:
with lib;
with lib.metacfg;
let
cfg = config.metacfg.cli-apps.bat;
in
{
options.metacfg.cli-apps.bat = {
enable = mkEnableOption "bat";
};
config = mkIf cfg.enable {
programs.bat = {
enable = true;
config.theme = "ansi";
extraPackages = with pkgs.bat-extras; [
batdiff
batman
batgrep
batwatch
];
};
};
}