{config, ...}: { home.sessionVariables = { PAGER = "less"; MANPAGER = "less --color=d+r --color=u+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 the `./env.less` include, as it extends the environment definitions + '' LESSHISTFILE = ${config.xdg.dataHome}/less/history ''; }; }