1a737bd471
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
20 lines
360 B
Nix
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";
|
|
};
|
|
};
|
|
}
|