Ghostty's GTK4 window construction made every launch sluggish on neogaia's integrated graphics (~440 ms to map a window), which a head-to-head comparison against Alacritty confirmed. Alacritty's lightweight OpenGL renderer opens fast on the iGPU, so it becomes the terminal on Super+Return. The choice stays reversible per host, so a capable host such as zeus could adopt Ghostty later.
20 lines
440 B
Nix
20 lines
440 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
# Alacritty as the desktop terminal, a lightweight GPU renderer that opens
|
|
# fast on the laptop's integrated graphics.
|
|
let
|
|
cfg = config.modules.desktop.terminal;
|
|
user = config.user.name;
|
|
in
|
|
{
|
|
options.modules.desktop.terminal.enable = lib.mkEnableOption "Alacritty as the desktop terminal";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home-manager.users.${user}.home.packages = [ pkgs.alacritty ];
|
|
};
|
|
}
|