From 75f0e2993f2de4b1e96ffa72e1956a9d1fa51008 Mon Sep 17 00:00:00 2001 From: voidarc Date: Fri, 3 Jul 2026 17:24:58 +0100 Subject: [PATCH] kitty added --- modules/features/kitty/default.nix | 55 ++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 modules/features/kitty/default.nix diff --git a/modules/features/kitty/default.nix b/modules/features/kitty/default.nix new file mode 100644 index 0000000..14cc3ce --- /dev/null +++ b/modules/features/kitty/default.nix @@ -0,0 +1,55 @@ +{ + self, + inputs, + ... +}: { + flake.nixosModules.kitty = { + pkgs, + lib, + ... + }: { + programs.kitty = { + enable = true; + package = self.packages.${pkgs.stdenv.hostPlatform.system}.kitty; + }; + }; + perSystem = { + pkgs, + lib, + self', + ... + }: { + packages.kitty = let + myFont = pkgs.nerd-fonts.fira-mono; # or any font-providing package + fontsConf = pkgs.makeFontsConf { + fontDirectories = [myFont]; + }; + in + inputs.wrappers.wrappers.kitty.wrap { + inherit pkgs; + environment = { + "FONTCONFIG_FILE" = "${fontsConf}"; + }; + font = { + name = "FiraMono Nerd Font"; + size = 11; + }; + settings = { + font_size = 11; + window_padding_width = 10; + background_opacity = 0.50; + confirm_os_window_close = 0; + enable_audio_bell = false; + cursor_trail = 1; + cursor_trail_start_threshold = 1; + cursor_trail_color = "#cba6f7"; + cursor_shape = "beam"; + allow_remote_control = true; + }; + keybindings = { + "ctrl+backspace" = "send_text all \\x17"; + }; + themeFile = "Catppuccin-Mocha"; + }; + }; +}