huge change
This commit is contained in:
parent
c159d2f3e3
commit
d86cc3c816
29 changed files with 1151 additions and 792 deletions
|
|
@ -2,27 +2,46 @@
|
|||
pkgs,
|
||||
lib,
|
||||
myhostname,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
capitalize =
|
||||
s:
|
||||
(lib.strings.toUpper (builtins.substring 0 1 s))
|
||||
+ (builtins.substring 1 (builtins.stringLength s - 1) s);
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
# name = "ComicShannsMono Nerd Font";
|
||||
name = "FiraCode Nerd Font Mono";
|
||||
size = 14;
|
||||
options = {
|
||||
kitty = {
|
||||
enable = mkEnableOption "enables kitty";
|
||||
theme = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "latte";
|
||||
description = "the theme for kitty";
|
||||
};
|
||||
};
|
||||
shellIntegration = {
|
||||
mode = "no-cursor";
|
||||
};
|
||||
# themeFile = "Catppuccin-Mocha";
|
||||
themeFile = "Catppuccin-Latte";
|
||||
settings = {
|
||||
confirm_os_window_close = 2;
|
||||
cursor_shape = "block";
|
||||
cursor_blink_interval = 0;
|
||||
enable_audio_bell = false;
|
||||
window_padding_width = 10;
|
||||
};
|
||||
config = mkIf config.kitty.enable {
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = "FiraCode Nerd Font Mono";
|
||||
size = 14;
|
||||
};
|
||||
shellIntegration = {
|
||||
mode = "no-cursor";
|
||||
};
|
||||
themeFile = "Catppuccin-${capitalize config.kitty.theme}";
|
||||
settings = {
|
||||
confirm_os_window_close = 2;
|
||||
cursor_shape = "block";
|
||||
cursor_blink_interval = 0;
|
||||
enable_audio_bell = false;
|
||||
window_padding_width = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue