2021-03-13 01:00:53 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.my.home.bat;
|
|
|
|
in
|
2021-02-20 15:13:37 +01:00
|
|
|
{
|
2021-03-13 01:00:53 +01:00
|
|
|
options.my.home.bat = with lib.my; {
|
|
|
|
enable = mkDisableOption "bat configuration";
|
|
|
|
};
|
|
|
|
|
|
|
|
config.programs.bat = lib.mkIf cfg.enable {
|
2021-02-20 15:13:37 +01:00
|
|
|
enable = true;
|
|
|
|
config = {
|
2022-03-03 18:39:45 +01:00
|
|
|
theme = "gruvbox-dark";
|
|
|
|
|
2021-02-20 15:13:37 +01:00
|
|
|
pager = with config.home.sessionVariables; "${PAGER} ${LESS}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|