marleyos/modules/home/programs/less/default.nix

23 lines
344 B
Nix

{
lib,
config,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.marleyos.programs.less;
in
{
options.marleyos.programs.less.enable = mkEnableOption "less";
config = mkIf cfg.enable {
programs.less.enable = true;
home.sessionVariables = {
LESS = "-R";
};
programs.lesspipe.enable = true;
};
}