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

30 lines
419 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
2024-03-21 15:00:36 +01:00
}:
with lib;
with lib.metacfg;
let
2024-03-21 15:00:36 +01:00
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
];
2024-03-21 15:00:36 +01:00
};
};
}