kitty added

This commit is contained in:
2026-07-03 17:24:58 +01:00
parent 36f5d5cdd7
commit 75f0e2993f

View File

@@ -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";
};
};
}