nix-config/modules/home/bat/default.nix

19 lines
348 B
Nix
Raw Normal View History

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 = {
theme = "gruvbox-dark";
2021-02-20 15:13:37 +01:00
pager = with config.home.sessionVariables; "${PAGER} ${LESS}";
};
};
}