mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 12:30:23 +01:00
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
ghostty,
|
|
...
|
|
}:
|
|
###########################################################
|
|
#
|
|
# Ghostty Configuration
|
|
#
|
|
###########################################################
|
|
{
|
|
programs.ghostty = {
|
|
enable = true;
|
|
package =
|
|
if pkgs.stdenv.isDarwin then
|
|
pkgs.hello # pkgs.ghostty is currently broken on darwin
|
|
else
|
|
pkgs.ghostty; # the stable version
|
|
# package = ghostty.packages.${pkgs.system}.default; # the latest version
|
|
enableBashIntegration = false;
|
|
installBatSyntax = false;
|
|
# installVimSyntax = true;
|
|
settings = {
|
|
font-family = "Maple Mono NF CN";
|
|
font-size = 13;
|
|
|
|
background-opacity = 0.93;
|
|
# only supported on macOS;
|
|
background-blur-radius = 10;
|
|
scrollback-limit = 20000;
|
|
|
|
# https://ghostty.org/docs/config/reference#command
|
|
# To resolve issues:
|
|
# 1. https://github.com/ryan4yin/nix-config/issues/26
|
|
# 2. https://github.com/ryan4yin/nix-config/issues/8
|
|
# Spawn a nushell in login mode via `bash`
|
|
command = "${pkgs.bash}/bin/bash --login -c 'nu --login --interactive'";
|
|
};
|
|
};
|
|
}
|