From dc00a11b42110b469173f315477dbefade3e615c Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 29 Jan 2025 13:55:50 +0800 Subject: [PATCH] feat: add ghostty --- flake.nix | 4 ++++ home/base/gui/terminal/ghostty.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 home/base/gui/terminal/ghostty.nix diff --git a/flake.nix b/flake.nix index bdc8bf7de..1477a1752 100644 --- a/flake.nix +++ b/flake.nix @@ -113,6 +113,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + ghostty = { + url = "github:ghostty-org/ghostty"; + }; + ######################## Some non-flake repositories ######################################### # doom-emacs is a configuration framework for GNU Emacs. diff --git a/home/base/gui/terminal/ghostty.nix b/home/base/gui/terminal/ghostty.nix new file mode 100644 index 000000000..6ce85456a --- /dev/null +++ b/home/base/gui/terminal/ghostty.nix @@ -0,0 +1,30 @@ +{ + pkgs, + ghostty, + ... +}: +########################################################### +# +# Ghostty Configuration +# +########################################################### +{ + programs.ghostty = { + enable = true; + package = pkgs.ghostty; # the stable version + # package = ghostty.packages.${pkgs.system}.default; # the latest version + enableBashIntegration = true; + # installVimSyntax = true; + settings = { + theme = "catppuccin-mocha"; + + font-family = "JetBrains Mono"; + font-size = 13; + + background-opacity = 0.93; + # only supported on macOS; + background-blur-radius = 10; + scrollback-limit = 20000; + }; + }; +}