Added kitty module

This commit is contained in:
alejandro-angulo 2024-07-31 22:48:06 -07:00
parent cf02022233
commit 28035db14c
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 33 additions and 0 deletions

View file

@ -14,6 +14,10 @@
tmux.enable = true;
};
programs = {
kitty.enable = true;
};
tools = {
direnv.enable = true;
eza.enable = true;

View file

@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.programs.kitty;
in {
options.${namespace}.programs.kitty = {
enable = mkEnableOption "kitty";
};
config = mkIf cfg.enable {
programs.kitty = {
enable = true;
font = {
size = 12;
package = pkgs.nerdfonts.override {fonts = ["Hack"];};
name = "Hack Nerd Font";
};
settings = {
background_opacity = "0.95";
};
};
};
}