From 94e6fea52622ac353c1909ad1783b718434beeb3 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 23 Jul 2024 23:21:59 -0400 Subject: [PATCH] home: add kitty module --- homeManagerModules/apps/default.nix | 1 + homeManagerModules/apps/kitty/default.nix | 24 +++++++++++++++++++++++ homeManagerModules/options.nix | 1 + 3 files changed, 26 insertions(+) create mode 100644 homeManagerModules/apps/kitty/default.nix diff --git a/homeManagerModules/apps/default.nix b/homeManagerModules/apps/default.nix index c0744373..2d601032 100644 --- a/homeManagerModules/apps/default.nix +++ b/homeManagerModules/apps/default.nix @@ -8,6 +8,7 @@ ./fastfetch ./firefox ./fuzzel + ./kitty ./keepassxc ./librewolf ./mako diff --git a/homeManagerModules/apps/kitty/default.nix b/homeManagerModules/apps/kitty/default.nix new file mode 100644 index 00000000..04322d0b --- /dev/null +++ b/homeManagerModules/apps/kitty/default.nix @@ -0,0 +1,24 @@ +{ + config, + lib, + pkgs, + ... +}: { + config = lib.mkIf config.ar.home.apps.kitty.enable { + programs.kitty = { + enable = true; + + font = { + name = "NotoSansM Nerd Font"; + size = config.gtk.font.size; + }; + + settings = { + background = "${config.ar.home.theme.colors.background}"; + background_opacity = "0.8"; + foreground = "${config.ar.home.theme.colors.text}"; + notify_on_cmd_finish = "unfocused 10.0 command ${lib.getExe pkgs.libnotify} \"Job Finished with Status: %s\" %c"; + }; + }; + }; +} diff --git a/homeManagerModules/options.nix b/homeManagerModules/options.nix index 91b30d02..79cd4746 100644 --- a/homeManagerModules/options.nix +++ b/homeManagerModules/options.nix @@ -49,6 +49,7 @@ in { }; }; + kitty.enable = lib.mkEnableOption "Kitty terminal."; librewolf.enable = lib.mkEnableOption "Librewolf web browser."; mako.enable = lib.mkEnableOption "Mako notification daemon.";