Skip to content

Commit

Permalink
feat: add ghostty
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Dec 27, 2024
1 parent 2a21d77 commit 64baf2d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions home/base/gui/terminal/ghostty/config
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions home/base/gui/terminal/ghostty/default.nix
Original file line number Diff line number Diff line change
@@ -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];
}

0 comments on commit 64baf2d

Please sign in to comment.