Files
nix-config/modules/home/cli/bat.nix
T
phundrak 5f4a7a4a42 refactor!: switch to dendritic pattern
BREAKING CHANGE: complete reorganization of the repository
2026-09-30 18:36:06 +02:00

27 lines
536 B
Nix

{
flake.modules.homeManager.bat = {
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.home.cli.bat;
in {
options.home.cli.bat.extras = mkEnableOption "Enables extra packages for bat.";
config.programs.bat = {
enable = true;
config = {
theme = "Nord";
map-syntax = [
".spacemacs*:Lisp"
];
};
extraPackages = mkIf cfg.extras (with pkgs.bat-extras; [
batman
batpipe
]);
};
};
}