1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00
home-manager/modules/programs/lesspipe.nix

20 lines
355 B
Nix
Raw Permalink Normal View History

2017-01-07 19:16:26 +01:00
{ config, lib, pkgs, ... }:
with lib;
{
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";
};
};
}