nixos/less: set default lessopen preprocessor to null (#316979)

Changed files
+2 -2
nixos
modules
programs
+2 -2
nixos/modules/programs/less.nix
···
lessopen = lib.mkOption {
type = lib.types.nullOr lib.types.str;
-
default = "|${pkgs.lesspipe}/bin/lesspipe.sh %s";
-
defaultText = lib.literalExpression ''"|''${pkgs.lesspipe}/bin/lesspipe.sh %s"'';
description = ''
Before less opens a file, it first gives your input preprocessor a chance to modify the way the contents of the file are displayed.
'';
···
lessopen = lib.mkOption {
type = lib.types.nullOr lib.types.str;
+
default = null;
+
example = lib.literalExpression ''"|''${pkgs.lesspipe}/bin/lesspipe.sh %s"'';
description = ''
Before less opens a file, it first gives your input preprocessor a chance to modify the way the contents of the file are displayed.
'';