From a90ddcd62748e445bbbe01834595eda29dc28db9 Mon Sep 17 00:00:00 2001 From: Olli Helenius Date: Sun, 9 Jan 2022 05:53:49 +0200 Subject: [PATCH] skim: add `package` option (#2619) Fixes #2618 --- modules/programs/skim.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/programs/skim.nix b/modules/programs/skim.nix index 40377054b..fd6f0c3d8 100644 --- a/modules/programs/skim.nix +++ b/modules/programs/skim.nix @@ -10,6 +10,13 @@ in { options.programs.skim = { enable = mkEnableOption "skim - a command-line fuzzy finder"; + package = mkOption { + type = types.package; + default = pkgs.skim; + defaultText = literalExpression "pkgs.skim"; + description = "Package providing the skim tool."; + }; + defaultCommand = mkOption { type = types.nullOr types.str; default = null; @@ -102,7 +109,7 @@ in { }; config = mkIf cfg.enable { - home.packages = [ pkgs.skim ]; + home.packages = [ cfg.package ]; home.sessionVariables = mapAttrs (n: v: toString v) (filterAttrs (n: v: v != [ ] && v != null) {