diff --git a/home/pager.nix b/home/pager.nix index c65c2f0..54ea3c4 100644 --- a/home/pager.nix +++ b/home/pager.nix @@ -1,8 +1,15 @@ -{ ... }: +{ config, lib, ... }: +let + cfg = config.my.home.pager; +in { - programs.lesspipe.enable = true; + options.my.home.pager = with lib.my; { + enable = mkDisableOption "pager configuration"; + }; - home.sessionVariables = { + config.programs.lesspipe.enable = cfg.enable; + + config.home.sessionVariables = lib.mkIf cfg.enable { # My default pager PAGER = "less"; # Clear the screen on start and exit