nix-config/home/jq/default.nix

23 lines
403 B
Nix
Raw Normal View History

2021-03-13 01:02:02 +01:00
{ config, lib, ... }:
let
cfg = config.my.home.jq;
in
2021-02-20 14:09:06 +01:00
{
2023-03-16 17:39:13 +01:00
options.my.home.jq = with lib; {
enable = my.mkDisableOption "jq configuration";
2021-03-13 01:02:02 +01:00
};
config.programs.jq = lib.mkIf cfg.enable {
2021-02-20 14:09:06 +01:00
enable = true;
colors = {
null = "1;30";
false = "0;37";
true = "0;37";
numbers = "0;37";
strings = "0;32";
arrays = "1;39";
objects = "1;39";
};
};
}