nix-config/home/bat/default.nix
2022-03-04 17:40:30 +01:00

19 lines
348 B
Nix

{ config, lib, ... }:
let
cfg = config.my.home.bat;
in
{
options.my.home.bat = with lib.my; {
enable = mkDisableOption "bat configuration";
};
config.programs.bat = lib.mkIf cfg.enable {
enable = true;
config = {
theme = "gruvbox-dark";
pager = with config.home.sessionVariables; "${PAGER} ${LESS}";
};
};
}