2017-01-07 19:16:26 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2017-09-26 23:40:31 +02:00
|
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
|
2017-01-07 19:16:26 +01:00
|
|
|
options = {
|
|
|
|
programs.lesspipe = {
|
|
|
|
enable = mkEnableOption "lesspipe preprocessor for less";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.programs.lesspipe.enable {
|
|
|
|
home.sessionVariables = {
|
|
|
|
LESSOPEN = "|${pkgs.lesspipe}/bin/lesspipe.sh %s";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|