My Nix Configuration

[modules.home] Make kitty module

Changed files
+56 -49
homes
x86_64-linux
pyrox
programs
modules
home
programs
-49
homes/x86_64-linux/pyrox/programs/kitty.nix
···
-
{pkgs, lib, ...}: {
-
programs.kitty = {
-
enable = true;
-
catppuccin.enable = true;
-
font.name = "BlexMono Nerd Font";
-
font.size = 14;
-
settings = {
-
# Font settings
-
bold_font = "BlexMono Nerd Font Bold";
-
italic_font = "BlexMono Nerd Font Italic";
-
bold_italic_font = "BlexMono Nerd Font Bold Italic";
-
# Cursor Settings
-
scrollback_lines = 10000;
-
wheel_scroll_multiplier = 3;
-
touch_scroll_multiplier = 2;
-
scrollback_pager = "${lib.getExe pkgs.page}";
-
cursor_shape = "block";
-
# Mouse settings
-
mouse_hide_wait = "0.5";
-
open_url_with = "default";
-
strip_trailing_spaces = "smart";
-
focus_follows_mouse = true;
-
# Perf settings
-
repaint_delay = 16;
-
sync_to_monitor = true;
-
# Terminal Bell settings
-
enable_audio_bell = false;
-
# Window settings
-
hide_window_decorations = true;
-
# Tab Bar settings
-
tab_bar_edge = "bottom";
-
tab_bar_margin_width = 0;
-
tab_bar_margin_height = "0 0";
-
tab_bar_style = "powerline";
-
tab_bar_min_tabs = 2;
-
-
shell = "fish";
-
editor = "${lib.getExe pkgs.py.nvim}";
-
allow_remote_control = "socket-only";
-
listen_on = "unix:/tmp/mykitty";
-
update_check_interval = 0;
-
allow_hyperlinks = true;
-
shell_integration = "no-cursor";
-
term = "xterm-kitty";
-
remember_window_size = "no";
-
linux_display_server = "wayland";
-
};
-
};
-
}
···
+15
modules/home/programs/kitty/default.nix
···
···
+
{ lib, config, ... }:
+
let
+
cfg = config.py.programs.kitty;
+
osPro = config.py.profiles;
+
in
+
{
+
options.py.programs.kitty.enable = lib.mkEnableOption "kitty";
+
config.programs.kitty = lib.mkIf (cfg.enable && osPro.graphical.enable) {
+
enable = true;
+
catppuccin.enable = true;
+
font.name = "BlexMono Nerd Font";
+
font.size = 14;
+
settings = import ./settings.nix;
+
};
+
}
+41
modules/home/programs/kitty/settings.nix
···
···
+
{
+
# Font settings
+
bold_font = "BlexMono Nerd Font Bold";
+
italic_font = "BlexMono Nerd Font Italic";
+
bold_italic_font = "BlexMono Nerd Font Bold Italic";
+
# Cursor Settings
+
scrollback_lines = 10000;
+
wheel_scroll_multiplier = 3;
+
touch_scroll_multiplier = 2;
+
scrollback_pager = "page";
+
cursor_shape = "block";
+
# Mouse settings
+
mouse_hide_wait = "0.5";
+
open_url_with = "default";
+
strip_trailing_spaces = "smart";
+
focus_follows_mouse = true;
+
# Perf settings
+
repaint_delay = 16;
+
sync_to_monitor = true;
+
# Terminal Bell settings
+
enable_audio_bell = false;
+
# Window settings
+
hide_window_decorations = true;
+
# Tab Bar settings
+
tab_bar_edge = "bottom";
+
tab_bar_margin_width = 0;
+
tab_bar_margin_height = "0 0";
+
tab_bar_style = "powerline";
+
tab_bar_min_tabs = 2;
+
+
shell = "fish";
+
editor = "nvim";
+
allow_remote_control = "socket-only";
+
listen_on = "unix:/tmp/mykitty";
+
update_check_interval = 0;
+
allow_hyperlinks = true;
+
shell_integration = "no-cursor";
+
term = "xterm-kitty";
+
remember_window_size = "no";
+
linux_display_server = "wayland";
+
}