Commit 25193bdc authored by Tom Fitzhenry's avatar Tom Fitzhenry Committed by tomf
Browse files

nixos/less: introduce programs.less.package

Allow users to set the package, e.g. to override withSecure to true.
parent 39cb4bd4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ in
      # therefore also enables this module
      enable = lib.mkEnableOption "less, a file pager";

      package = lib.mkPackageOption pkgs "less" { };

      configFile = lib.mkOption {
        type = lib.types.nullOr lib.types.path;
        default = null;
@@ -110,7 +112,7 @@ in

  config = lib.mkIf cfg.enable {

    environment.systemPackages = [ pkgs.less ];
    environment.systemPackages = [ cfg.package ];

    environment.variables = {
      LESSKEYIN_SYSTEM = builtins.toString lessKey;