config.nix/home/apps/terminal/kitty.nix
2026-04-11 17:21:28 +02:00

76 lines
1.8 KiB
Nix

{
config,
lib,
pkgs,
osConfig,
...
}:
{
config = lib.mkIf osConfig.apps.terminal.kitty.enable {
programs = {
kitty = {
enable = true;
enableGitIntegration = true;
shellIntegration = {
enableFishIntegration = osConfig.programs.fish.enable;
enableBashIntegration = osConfig.programs.bash.enable;
enableZshIntegration = osConfig.programs.zsh.enable;
};
font = {
name = "FiraCode Nerd Font";
size = 16;
package = pkgs.nerd-fonts.fira-code;
};
settings = {
include = "themes/noctalia.conf";
wayland_titlebar_color = "system";
macos_titlebar_color = "system";
# The most important setting of the whole confiG
confirm_os_window_close = 0;
# Cursor
cursor_shape = "underline";
# Scrollback
scrollback_lines = 10000;
# Link Behaviour
url_style = "straight";
open_url_with = "default";
# Layouts
remember_window_size = "no";
enabled_layouts = "splits, tall";
window_resize_step_cells = 3;
window_resize_step_lines = 3;
window_border_width = "3 pt";
draw_minimal_borders = "yes";
window_margin_width = 10;
window_padding_width = 10;
# Borders/Appearance
inactive_text_alpha = 0.5;
hide_window_decorations = "no";
# tab bar
tab_bar_min_tabs = 1;
tab_bar_edge = "bottom";
tab_bar_style = "powerline";
tab_powerline_style = "slanted";
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";
};
};
};
home.sessionVariables = {
TERM = lib.mkDefault "xterm-kitty";
};
};
}