nixcfg/modules/home/cli-apps/bat/default.nix
Harald Hoyer 04f08d679e rename plusultra to metacfg
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-03-20 08:58:05 +01:00

23 lines
376 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 ];
};
};
}