1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-11 11:39:49 +01:00
home-manager/modules/programs/lesspipe.nix
2024-12-28 00:51:42 +01:00

25 lines
429 B
Nix

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