Skip to content

Commit

Permalink
Splitting jq,yq,xq off.
Browse files Browse the repository at this point in the history
  • Loading branch information
atropos112 committed Aug 22, 2024
1 parent 67808df commit da784a8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 39 deletions.
7 changes: 1 addition & 6 deletions lib/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ in {
../pkgs/attic-client.nix
../pkgs/nvim.nix
../pkgs/tmux.nix
../pkgs/jq.nix
./nix.nix
./identities/users.nix
./identities/known_hosts.nix
Expand Down Expand Up @@ -177,12 +178,6 @@ in {
# Basic CLI downloader
wget

# useful for CLI based yaml processing
yq

# Useful for CLI based json processing
jq

# checking temps and basics
lm_sensors

Expand Down
1 change: 0 additions & 1 deletion lib/common/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ in {
../../pkgs/kiwix-serve.nix
../../pkgs/s3.nix
../../pkgs/zeal
../../pkgs/jq.nix
];

stylix = {
Expand Down
39 changes: 17 additions & 22 deletions lib/pkgs/jq.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
gojq
yq
xq
];

home-manager.users.atropos = {
programs = {
atuin.enableZshIntegration = true;
# kitty.shellIntegration.enableZshIntegration = true;
home-manager.users.atropos.programs = {
zsh = {
plugins = [
{
name = "fzf-jq";
src = pkgs.fetchFromGitHub {
owner = "reegnz";
repo = "jq-zsh-plugin";
rev = "48befbcd91229e48171d4aac5215da205c1f497e";
sha256 = "sha256-q/xQZ850kifmd8rCMW+aAEhuA43vB9ZAW22sss9e4SE=";
};
file = "jq.plugin.zsh";
}
];

zsh = {
plugins = [
{
name = "fzf-jq";
src = pkgs.fetchFromGitHub {
owner = "reegnz";
repo = "jq-zsh-plugin";
rev = "48befbcd91229e48171d4aac5215da205c1f497e";
sha256 = "sha256-q/xQZ850kifmd8rCMW+aAEhuA43vB9ZAW22sss9e4SE=";
};
file = "jq.plugin.zsh";
}
];

shellAliases = {
# general
};
};
shellAliases.jq = "gojq";
};
};
}
10 changes: 0 additions & 10 deletions lib/pkgs/zsh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ in {
# INFO: These file paths are found by installing it first with bogus file
# and then going to ~/.config/zsh/plugins and finding the plugin we want within which we have share/... path that we should put here.
plugins = [
{
name = "fzf-jq";
src = pkgs.fetchFromGitHub {
owner = "reegnz";
repo = "jq-zsh-plugin";
rev = "48befbcd91229e48171d4aac5215da205c1f497e";
sha256 = "sha256-q/xQZ850kifmd8rCMW+aAEhuA43vB9ZAW22sss9e4SE=";
};
file = "jq.plugin.zsh";
}
{
name = "fzf-tab";
src = pkgs.zsh-fzf-tab;
Expand Down

0 comments on commit da784a8

Please sign in to comment.