1
0
Fork 0

full rewrite, first commit

This commit is contained in:
Philipp 2025-02-05 17:58:09 +01:00
commit a83c37a638
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
24 changed files with 4358 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{
config,
lib,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.apps.kitty;
defaultSettings = {
confirm_os_window_close = 0;
mouse_hide_wait = "-1.0";
dynamic_background_opacity = true;
editor = "nvim";
term = "xterm-256color";
adjust_line_height = 3;
copy_on_select = "clipboard";
cursor_shape = "Beam";
};
defaultFont = {
name = "Hack Nerd Font Mono";
package = pkgs.nerdfonts;
size = 12;
};
in
{
options.${namespace}.apps.kitty = with types; {
enable = mkBoolOpt false "Whether or not to enable kitty.";
settings = mkOpt attrs defaultSettings "Settings to apply to the profile.";
font = mkOpt attrs defaultFont "Customize default font settings.";
};
config = mkIf cfg.enable {
programs.kitty = {
enable = true;
themeFile = "Dracula";
inherit (cfg) font settings;
};
};
}