mirror of
https://github.com/nix-community/home-manager
synced 2025-01-11 11:39:49 +01:00
25 lines
429 B
Nix
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";
|
|
};
|
|
};
|
|
}
|