nix-config/home/bat/default.nix

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