1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-09 18:53:51 +00:00
ultima/modules/home/programs/cli/bat/default.nix
2024-11-21 18:24:15 +09:00

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"; };
};
};
}