treewide: remove with lib (#6735)

Continuation of `with lib;` cleanup.
This commit is contained in:
Austin Horstman 2025-03-31 22:32:16 -05:00 committed by GitHub
parent ccd7df836e
commit 0b491b460f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
200 changed files with 2421 additions and 2817 deletions

View file

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