all repos — nixfiles @ 6815e6f2765af2dc7e72f9250f73e0005ae9cd2d

System and user configuration, managed by nix and home-manager

kitty: initial configuration
Alan Pearce alan@alanpearce.eu
Tue, 03 Oct 2023 13:20:40 +0200
commit

6815e6f2765af2dc7e72f9250f73e0005ae9cd2d

parent

5dc3bbbe07ac69f7676e6fd9720791532b091a72

2 files changed, 26 insertions(+), 0 deletions(-)

jump to
M user/mba.nixuser/mba.nix
@@ -8,6 +8,7 @@ ./settings/darwin.nix     ./settings/emacs.nix
     ./settings/fish.nix
     ./settings/git.nix
+    ./settings/kitty.nix
     ./settings/nixpkgs.nix
     ./settings/ssh.nix
     ./settings/tabnine.nix
A user/settings/kitty.nix
@@ -0,0 +1,25 @@+{ pkgs
+, ...
+}:
+let
+  inherit (pkgs) stdenv;
+in
+{
+  programs.kitty = {
+    enable = true;
+    font = {
+      package = pkgs.recursive;
+      name = "Rec Mono SemiCasual";
+      size = 15;
+    };
+    theme = "Alabaster";
+    shellIntegration = {
+      mode = "enabled";
+    };
+  };
+  programs.fish.shellInit = ''
+    if test -n $KITTY_INSTALLATION_DIR
+      set -x KITTY_SHELL_INTEGRATION no-cursor
+    end
+  '';
+}