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