nix/home-manager/common/software/gui/ghostty.nix
2025-01-07 10:56:09 -08:00

28 lines
890 B
Nix

{ theme, ... }: {
# TODO Re-enable this when 25.05 is out or when this is compabile with 24.11
# imports = [ ../../../../stylix/themes/${theme}/home-manager/ghostty.nix ];
# Otherwise it sets the term to "xterm-ghostty" and it fails to connect to ssh
programs.bash.sessionVariables = { TERM = "xterm-256color"; };
programs.fish.shellInit = ''set TERM "xterm-256color '';
programs.ghostty = {
# TODO Re-enable this when 25.05 is out or when this is compabile with 24.11
enable = false;
enableBashIntegration = true;
enableFishIntegration = true;
enableZshIntegration = true;
installBatSyntax = true;
installVimSyntax = true;
settings = {
font-size = 10;
cursor-style = "bar";
keybind = [
"shift+right=next_tab"
"shift+left=previous_tab"
"shift+up=toggle_tab_overview"
];
};
};
}