nix-config/home/bat/default.nix

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