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
|
|
|
{
|
2023-03-16 17:39:13 +01:00
|
|
|
options.my.home.bat = with lib; {
|
|
|
|
enable = my.mkDisableOption "bat configuration";
|
2021-03-13 01:00:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|