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

24 lines
344 B
Nix
Raw Normal View History

2024-11-16 17:37:09 -08:00
{
lib,
config,
...
}:
let
inherit (lib) mkEnableOption mkIf;
2024-11-16 17:37:09 -08:00
cfg = config.marleyos.programs.less;
2024-11-16 17:37:09 -08:00
in
{
options.marleyos.programs.less.enable = mkEnableOption "less";
2024-11-16 17:37:09 -08:00
config = mkIf cfg.enable {
programs.less.enable = true;
home.sessionVariables = {
LESS = "-R";
};
programs.lesspipe.enable = true;
};
}