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

26 lines
370 B
Nix
Raw Normal View History

2024-11-16 17:37:09 -08:00
{
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;
};
}