feat: jq
This commit is contained in:
parent
23c028f620
commit
281ebd52f0
6 changed files with 28 additions and 3 deletions
|
@ -22,6 +22,7 @@ in {
|
||||||
httpie = enabled;
|
httpie = enabled;
|
||||||
hyfetch = enabled;
|
hyfetch = enabled;
|
||||||
journalctl = enabled;
|
journalctl = enabled;
|
||||||
|
jq = enabled;
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
./httpie.nix
|
./httpie.nix
|
||||||
./hyfetch
|
./hyfetch
|
||||||
./journalctl.nix
|
./journalctl.nix
|
||||||
|
./jq.nix
|
||||||
./nemo.nix
|
./nemo.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
|
|
20
modules/home/programs/jq.nix
Normal file
20
modules/home/programs/jq.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
marleylib,
|
||||||
|
config,
|
||||||
|
osConfig,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (marleylib.module) mkEnableOption';
|
||||||
|
|
||||||
|
cfg = config.marleyos.programs.jq;
|
||||||
|
osCfg = osConfig.marleyos.programs.jq;
|
||||||
|
in {
|
||||||
|
options.marleyos.programs.jq.enable = mkEnableOption' "jq" osCfg.enable;
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.jq = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -14,6 +14,7 @@ in {
|
||||||
programs = {
|
programs = {
|
||||||
curl = enabled;
|
curl = enabled;
|
||||||
fish = enabled;
|
fish = enabled;
|
||||||
|
jq = enabled;
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./curl.nix
|
./curl.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./jq.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.marleyos.programs.jq;
|
cfg = config.marleyos.programs.jq;
|
||||||
|
@ -8,8 +9,8 @@ in {
|
||||||
options.marleyos.programs.jq.enable = lib.mkEnableOption "jq";
|
options.marleyos.programs.jq.enable = lib.mkEnableOption "jq";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.jq = {
|
environment.systemPackages = with pkgs; [
|
||||||
enable = true;
|
jq
|
||||||
};
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue