1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00
home-manager/modules/programs/lesspipe.nix
Austin Horstman 0b491b460f
treewide: remove with lib (#6735)
Continuation of `with lib;` cleanup.
2025-03-31 22:32:16 -05:00

19 lines
429 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";
};
};
}