fix(ghostty): add cairo wrapper and make it the default terminal

This commit is contained in:
randogoth 2026-02-04 21:51:25 +02:00
parent 987aee1c5b
commit 2e58a2d4ad
5 changed files with 17 additions and 8 deletions

View file

@ -24,9 +24,11 @@ in
];
# Use Ghostty as the default terminal emulator.
# On some machines Ghostty may fail to acquire an OpenGL context; `ghostty-cairo`
# forces GTK4's Cairo renderer (CPU) and is more hardware-agnostic.
environment.sessionVariables = {
TERMINAL = "${pkgs.ghostty}/bin/ghostty";
DEFAULT_TERMINAL = "${pkgs.ghostty}/bin/ghostty";
TERMINAL = "ghostty-cairo";
DEFAULT_TERMINAL = "ghostty-cairo";
};
programs.bash = {