nixcfg/modules/home/cli-apps/bat/default.nix

23 lines
376 B
Nix
Raw Normal View History

2024-03-21 15:00:36 +01:00
{ 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 ];
};
};
}