change default terminal emulator to ghostty

This commit is contained in:
Simon Gardling 2025-06-18 22:55:31 -07:00
parent 154e8a388f
commit 26ffcc4053
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
4 changed files with 23 additions and 3 deletions

View File

@ -7,7 +7,8 @@
{
imports = [
./no-gui.nix
./progs/alacritty.nix
# ./progs/alacritty.nix
./progs/ghostty.nix
./progs/emacs.nix
# ./progs/gpt4all/gpt4all.nix
# ./progs/trezor.nix # - broken
@ -162,7 +163,6 @@
};
home.sessionVariables = {
TERMINAL = "alacritty";
BROWSER = "zen";
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath [
pkgs.stdenv.cc.cc

View File

@ -1,5 +1,9 @@
{ pkgs, ... }:
{
home.sessionVariables = {
TERMINAL = "alacritty";
};
programs.alacritty = {
enable = true;
package = pkgs.alacritty;

View File

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
# https://mynixos.com/home-manager/option/programs.ghostty
programs.ghostty = {
enable = true;
enableFishIntegration = true;
settings = {
theme = "Adventure";
background-opacity = 0.7;
};
};
home.sessionVariables = {
TERMINAL = "ghostty";
};
}

View File

@ -133,7 +133,7 @@
"Mod+O".action = toggle-overview;
# open a terminal
"Mod+T".action = spawn "${pkgs.alacritty}/bin/alacritty";
"Mod+T".action = spawn config.home.sessionVariables.TERMINAL;
# lock the screen
"Mod+X".action = spawn "${pkgs.swaylock}/bin/swaylock";