From 67808df1da427a82381ddd9f86582d24fc9efd2a Mon Sep 17 00:00:00 2001 From: atropos Date: Thu, 22 Aug 2024 19:14:05 +0100 Subject: [PATCH] Added jq.nix --- lib/common/desktop/default.nix | 3 +++ lib/pkgs/jq.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 lib/pkgs/jq.nix diff --git a/lib/common/desktop/default.nix b/lib/common/desktop/default.nix index 2ca9ce3..cb12db6 100644 --- a/lib/common/desktop/default.nix +++ b/lib/common/desktop/default.nix @@ -42,6 +42,7 @@ in { ../../pkgs/kiwix-serve.nix ../../pkgs/s3.nix ../../pkgs/zeal + ../../pkgs/jq.nix ]; stylix = { @@ -110,6 +111,8 @@ in { # Inform QT apps of the version QT_QPA_PLATFORMTHEME = "qt6ct"; + QT_STYLE_OVERRIDE = "kvantum"; + QT_QPA_PLATFORM = "wayland"; # Base diff --git a/lib/pkgs/jq.nix b/lib/pkgs/jq.nix new file mode 100644 index 0000000..8d336e7 --- /dev/null +++ b/lib/pkgs/jq.nix @@ -0,0 +1,31 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs; [ + gojq + ]; + + home-manager.users.atropos = { + programs = { + atuin.enableZshIntegration = true; + # kitty.shellIntegration.enableZshIntegration = true; + + 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 + }; + }; + }; + }; +}