dotfiles/modules/os/cli/less.nix
eriedaberrie 4130737e8a Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-09-21 00:38:02 -07:00

20 lines
360 B
Nix

{ config, lib, ... }:
let
cfg = config.my.cli.less;
in {
options.my.cli.less = {
enable = lib.mkEnableOption null // {
default = true;
};
};
config = lib.mkIf cfg.enable {
programs.less.enable = true;
environment.sessionVariables = {
MANPAGER = "less -R --use-color -Dd+r -Du+b";
MANROFFOPT = "-P -c";
};
};
}