2021-03-13 01:02:19 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.my.home.pager;
|
|
|
|
in
|
2021-02-20 14:12:57 +01:00
|
|
|
{
|
2021-03-13 01:02:19 +01:00
|
|
|
options.my.home.pager = with lib.my; {
|
|
|
|
enable = mkDisableOption "pager configuration";
|
|
|
|
};
|
|
|
|
|
2021-02-20 14:46:58 +01:00
|
|
|
|
2021-05-09 21:13:24 +02:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
home.sessionVariables = {
|
|
|
|
# My default pager
|
|
|
|
PAGER = "less";
|
|
|
|
# Clear the screen on start and exit
|
|
|
|
LESS = "-R -+X -c";
|
|
|
|
};
|
2021-02-20 14:46:58 +01:00
|
|
|
};
|
2021-02-20 14:12:57 +01:00
|
|
|
}
|