Jump to content

Ghostty: Difference between revisions

From Official NixOS Wiki
Kaya (talk | contribs)
Add terminal category
Axka (talk | contribs)
Tags: Mobile edit Mobile web edit Visual edit
 
Line 16: Line 16:


== Installation ==
== Installation ==
Ghostty can be installed in the usual ways via declaring it in either your NixOS configuration or in your Home Manager configuration.
[[Adding programs to PATH|Install]] the <code>ghostty</code> package on Linux or the <code>ghostty-bin</code> package on Darwin/macOS. If you're configuring Ghostty with Home Manager, you don't have to install the package manually.
 
{{Note|If you are using Darwin/macOS. You will have to use the ghostty-bin package instead!}}<syntaxhighlight lang="nix">
# System-wide installation (in /etc/nixos/configuration.nix)
environment.systemPackages = with pkgs; [
  ghostty
];
 
# User-specific installation (in ~/.config/nixpkgs/home.nix)
home.packages = with pkgs; [
  ghostty
];
 
</syntaxhighlight>


== Configuring Ghostty with Home Manager ==
== Configuring Ghostty with Home Manager ==

Latest revision as of 12:53, 8 February 2026

Ghostty

Terminal emulator Application

100%
Initial release31 December 2024
Latest release1.2.3; 23 October 2025.
Operating SystemLinux, macOS
Language(s)Zig
External links
Websitehttps://ghostty.org/
GitHubhttps://github.com/ghostty-org/ghostty
Bug trackerhttps://github.com/ghostty-org/ghostty/issues
Documentationhttps://ghostty.org/docs

Ghostty is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration.[1]

Installation

Install the ghostty package on Linux or the ghostty-bin package on Darwin/macOS. If you're configuring Ghostty with Home Manager, you don't have to install the package manually.

Configuring Ghostty with Home Manager

A quick example on how to configure and install Ghostty with Home Manager, full set of options can be found here.

❄︎ home.nix
{ pkgs, ... }: {
  programs.ghostty = {
    enable = true;
    package = if pkgs.stdenv.isDarwin then pkgs.ghostty-bin else pkgs.ghostty;

    # Enable for whichever shell you plan to use!
    enableBashIntegration = true;
    enableFishIntegration = true;
    enableZshIntegration = true;

    settings = {
      theme = "Abernathy";
      background-opacity = "0.95";
    };
  };
}