summaryrefslogtreecommitdiff
path: root/common/modules/terminal/ghostty.nix
diff options
context:
space:
mode:
authorbeeb5k <beebeeb5k@gmail.com>2026-03-06 21:37:34 +0530
committerbeeb5k <beebeeb5k@gmail.com>2026-03-06 21:37:34 +0530
commit0de067092c9dd19c3352554e39de73e172f29b42 (patch)
tree4175503766405733846687efdb29657bb322dccd /common/modules/terminal/ghostty.nix
parentf1de2014dcd426e015a2638222160d9d349ea4e5 (diff)
Add modules
Diffstat (limited to 'common/modules/terminal/ghostty.nix')
-rw-r--r--common/modules/terminal/ghostty.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/common/modules/terminal/ghostty.nix b/common/modules/terminal/ghostty.nix
new file mode 100644
index 0000000..4a6277e
--- /dev/null
+++ b/common/modules/terminal/ghostty.nix
@@ -0,0 +1,54 @@
+{
+ lib,
+ config,
+}:
+let
+ cfg = config.beeMods.terminal;
+in
+{
+ config = lib.mkIf cfg.ghostty {
+ programs.ghostty = {
+ enable = true;
+ enableFishIntegration = true;
+ settings = {
+ config-file = lib.optionals config.beeMods.matugen.enable [ "~/.config/ghostty/colors.conf" ];
+
+ font-family = cfg.font.family;
+ font-size = cfg.font.size;
+ alpha-blending = "liner";
+ window-padding-x = cfg.window.padding-x;
+ window-padding-y = cfg.window.padding-y;
+ font-feature = [
+ "cv10"
+ "cv06"
+ "ss02"
+ "ss03"
+ ]
+ ++ (
+ if cfg.font.ligatures then
+ [
+ "calt"
+ "liga"
+ "dlig"
+ ]
+ else
+ [
+ "-calt"
+ "-liga"
+ "-dlig"
+ ]
+ );
+ bold-is-bright = cfg.font.bright_color_is_bold;
+ gtk-titlebar = false;
+ gtk-single-instance = true;
+ gtk-tabs-location = "bottom";
+ gtk-wide-tabs = false;
+ resize-overlay = "never";
+ copy-on-select = false;
+ confirm-close-surface = false;
+ mouse-hide-while-typing = true;
+ window-inherit-working-directory = false;
+ };
+ };
+ };
+}