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;
|
||||
hyfetch = enabled;
|
||||
journalctl = enabled;
|
||||
jq = enabled;
|
||||
nh = enabled;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
./httpie.nix
|
||||
./hyfetch
|
||||
./journalctl.nix
|
||||
./jq.nix
|
||||
./nemo.nix
|
||||
./nh.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 = {
|
||||
curl = enabled;
|
||||
fish = enabled;
|
||||
jq = enabled;
|
||||
nh = enabled;
|
||||
};
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./curl.nix
|
||||
./fish.nix
|
||||
./jq.nix
|
||||
./nh.nix
|
||||
./waybar.nix
|
||||
];
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.marleyos.programs.jq;
|
||||
|
@ -8,8 +9,8 @@ in {
|
|||
options.marleyos.programs.jq.enable = lib.mkEnableOption "jq";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.jq = {
|
||||
enable = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
jq
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue