{config, ...}: { home.sessionVariables = { PAGER = "less"; MANPAGER = "less -Db+r -Du+b"; }; programs.less = { enable = true; keys = builtins.readFile ./command.less + builtins.readFile ./line-edit.less + builtins.readFile ./env.less # This next line *must* be under `./env.less` as it adds to the definitions + '' LESSHISTFILE = ${config.xdg.dataHome}/less/history ''; }; }