diff --git a/home/bat.nix b/home/bat.nix index 046850b..8485dd3 100644 --- a/home/bat.nix +++ b/home/bat.nix @@ -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; config = { pager = with config.home.sessionVariables; "${PAGER} ${LESS}";