From 7da4e6680f814562f070bad01922d6736e54be94 Mon Sep 17 00:00:00 2001 From: Tanish2002 Date: Sun, 10 Apr 2022 17:35:29 +0530 Subject: [PATCH] lf: add package option PR #2883 --- modules/programs/lf.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/programs/lf.nix b/modules/programs/lf.nix index a3cf7ec3d..8f0a07cb8 100644 --- a/modules/programs/lf.nix +++ b/modules/programs/lf.nix @@ -58,6 +58,15 @@ in { programs.lf = { enable = mkEnableOption "lf"; + package = mkOption { + type = types.package; + default = pkgs.lf; + defaultText = literalExpression "pkgs.lf"; + description = '' + lf package to use. + ''; + }; + settings = mkOption { type = lfSettingsType; default = { }; @@ -169,7 +178,7 @@ in { }; config = mkIf cfg.enable { - home.packages = [ pkgs.lf ]; + home.packages = [ cfg.package ]; xdg.configFile."lf/lfrc".text = let fmtSetting = k: v: