From 405a1f3afeb71b6536d3160e1473c36b3e01c3cf Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Mar 2021 00:02:02 +0000 Subject: [PATCH] home: jq: make it enable-able --- home/jq.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/home/jq.nix b/home/jq.nix index fd79aaa..d8bd59b 100644 --- a/home/jq.nix +++ b/home/jq.nix @@ -1,6 +1,13 @@ -{ ... }: +{ config, lib, ... }: +let + cfg = config.my.home.jq; +in { - programs.jq = { + options.my.home.jq = with lib.my; { + enable = mkDisableOption "jq configuration"; + }; + + config.programs.jq = lib.mkIf cfg.enable { enable = true; colors = { null = "1;30";