depot/third_party/home-manager/modules/programs/lesspipe.nix
Default email 72904c318c Project import generated by Copybara.
GitOrigin-RevId: 9bf1f40af124573a54fd208b1f539eb694ef31a6
2020-10-11 17:22:58 -07:00

19 lines
355 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
meta.maintainers = [ maintainers.rycee ];
options = {
programs.lesspipe = {
enable = mkEnableOption "lesspipe preprocessor for less";
};
};
config = mkIf config.programs.lesspipe.enable {
home.sessionVariables = {
LESSOPEN = "|${pkgs.lesspipe}/bin/lesspipe.sh %s";
};
};
}