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