mirror of
https://github.com/tboerger/nixos-config
synced 2026-03-25 21:31:49 +01:00
33 lines
347 B
Nix
33 lines
347 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
options,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.programs.jq;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
programs = {
|
|
jq = {
|
|
enable = mkEnableOption "Jq";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home = {
|
|
packages = with pkgs; [
|
|
jq
|
|
];
|
|
};
|
|
};
|
|
}
|