2.home-manager/modules/programs/lesspipe/default.nix
Austin Horstman 4fca600cb1 treewide: implement auto importing for modules
Reduce maintenance burden and increase efficiency by automatically
importing modules following a specific convention.

Co-authored-by: awwpotato <awwpotato@voidq.com>
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00

26 lines
439 B
Nix

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