From 0e329cee4c17fa0b7df32233513b9cb2236d382b Mon Sep 17 00:00:00 2001 From: bb010g Date: Thu, 21 Mar 2019 15:55:28 -0700 Subject: [PATCH] jq: add `package` option --- modules/programs/jq.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/programs/jq.nix b/modules/programs/jq.nix index 681d5ce1..76462991 100644 --- a/modules/programs/jq.nix +++ b/modules/programs/jq.nix @@ -30,6 +30,13 @@ in { programs.jq = { enable = mkEnableOption "the jq command-line JSON processor"; + package = mkOption { + type = types.package; + default = pkgs.jq; + defaultText = literalExample "pkgs.jq"; + description = "jq package to use."; + }; + colors = mkOption { description = '' The colors used in colored JSON output. @@ -65,7 +72,7 @@ in { }; config = mkIf cfg.enable { - home.packages = [ pkgs.jq ]; + home.packages = [ cfg.package ]; home.sessionVariables = let c = cfg.colors; in {