nix-config/home/bat.nix

17 lines
317 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 = {
pager = with config.home.sessionVariables; "${PAGER} ${LESS}";
};
};
}