diff --git a/flake.nix b/flake.nix index 6fae0582..d229247b 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/config b/home/base/gui/terminal/ghostty/config new file mode 100644 index 00000000..5e5d52a9 --- /dev/null +++ b/home/base/gui/terminal/ghostty/config @@ -0,0 +1,8 @@ +font-family = "JetBrains Mono" + +theme = catppuccin-mocha +background-opacity = 0.93 +# only supported on macOS +background-blur-radius = 10 + +scrollback-limit = 20000 diff --git a/home/base/gui/terminal/ghostty/default.nix b/home/base/gui/terminal/ghostty/default.nix new file mode 100644 index 00000000..34eeedb2 --- /dev/null +++ b/home/base/gui/terminal/ghostty/default.nix @@ -0,0 +1,22 @@ +{ + config, + pkgs, + lib, + ghostty, + ... +}: +########################################################### +# +# Ghostty Configuration +# +########################################################### +{ + xdg.configFile."ghostty/config".source = + config.lib.file.mkOutOfStoreSymlink + "${config.home.homeDirectory}/nix-config/home/base/terminal/ghostty/config"; + + home.packages = + [] + ++ lib.optional pkgs.stdenv.isLinux + [ghostty.packages.${pkgs.system}.default]; +}