mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 19:43:52 +00:00
32 lines
423 B
Nix
32 lines
423 B
Nix
{
|
|
x,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
cfg = config.module.programs.cli.bat;
|
|
in
|
|
{
|
|
options.module.programs.cli.bat = {
|
|
enable = mkBool;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.bat = True // {
|
|
extraPackages = with pkgs.bat-extras; [
|
|
# prettybat
|
|
batwatch
|
|
batgrep
|
|
batdiff
|
|
];
|
|
config = {
|
|
wrap = "character";
|
|
};
|
|
};
|
|
};
|
|
}
|