home: bat: make it enable-able

This commit is contained in:
Bruno BELANYI 2021-03-13 00:00:53 +00:00
parent 5b646ec174
commit 722e9c117d

View file

@ -1,6 +1,13 @@
{ config, ... }: { config, lib, ... }:
let
cfg = config.my.home.bat;
in
{ {
programs.bat = { options.my.home.bat = with lib.my; {
enable = mkDisableOption "bat configuration";
};
config.programs.bat = lib.mkIf cfg.enable {
enable = true; enable = true;
config = { config = {
pager = with config.home.sessionVariables; "${PAGER} ${LESS}"; pager = with config.home.sessionVariables; "${PAGER} ${LESS}";