23 lines
382 B
Nix
23 lines
382 B
Nix
|
{ lib
|
||
|
, config
|
||
|
, pkgs
|
||
|
, ...
|
||
|
}:
|
||
|
with lib;
|
||
|
with lib.plusultra; let
|
||
|
cfg = config.plusultra.cli-apps.bat;
|
||
|
in
|
||
|
{
|
||
|
options.plusultra.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 ];
|
||
|
};
|
||
|
};
|
||
|
}
|