home: jq: make it enable-able

This commit is contained in:
Bruno BELANYI 2021-03-13 00:02:02 +00:00
parent 4678164d74
commit 405a1f3afe

View file

@ -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";