From 28035db14c75e7b3adf302f4916027b40f0b75f2 Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Wed, 31 Jul 2024 22:48:06 -0700 Subject: [PATCH] Added kitty module --- homes/x86_64-linux/alejandro/default.nix | 4 ++++ modules/home/programs/kitty/default.nix | 29 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 modules/home/programs/kitty/default.nix diff --git a/homes/x86_64-linux/alejandro/default.nix b/homes/x86_64-linux/alejandro/default.nix index 797d7f2..9467fbd 100644 --- a/homes/x86_64-linux/alejandro/default.nix +++ b/homes/x86_64-linux/alejandro/default.nix @@ -14,6 +14,10 @@ tmux.enable = true; }; + programs = { + kitty.enable = true; + }; + tools = { direnv.enable = true; eza.enable = true; diff --git a/modules/home/programs/kitty/default.nix b/modules/home/programs/kitty/default.nix new file mode 100644 index 0000000..afb09c9 --- /dev/null +++ b/modules/home/programs/kitty/default.nix @@ -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"; + }; + }; + }; +}