marleyos/modules/home/programs/less/default.nix
2024-11-16 19:38:56 -08:00

25 lines
370 B
Nix

{
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;
};
}