Set up zsh-kitty shell integration
diff --git a/flake.nix b/flake.nix
index fb6ff68..064fd0c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -34,7 +34,7 @@
default = nixpkgs.lib.nixosSystem {
inherit system;
- specialArgs = {
+ specialArgs = extraInputs // {
inherit nixpkgs;
};
diff --git a/src/apps/personal/kitty.nix b/src/apps/personal/kitty.nix
index 2c6426d..ed5721b 100644
--- a/src/apps/personal/kitty.nix
+++ b/src/apps/personal/kitty.nix
@@ -1,5 +1,16 @@
{ pkgs, ... }: {
- home.packages = with pkgs; [
- kitty
- ];
+ programs.kitty = {
+ enable = true;
+
+ theme = "One Half";
+ };
+
+ programs.zsh.initExtra = ''
+ if test -n "$KITTY_INSTALLATION_DIR"; then
+ export KITTY_SHELL_INTEGRATION="enabled"
+ autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
+ kitty-integration
+ unfunction kitty-integration
+ fi
+ '';
}