mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
feat: add Ghostty
This commit is contained in:
parent
c6c59dd552
commit
ff6c4c5d16
6 changed files with 30 additions and 15 deletions
16
home/apps/ghostty.conf
Normal file
16
home/apps/ghostty.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
theme = catppuccin-frappe
|
||||
|
||||
font-family = "Ryan Term"
|
||||
font-family = "Symbols Nerd Font"
|
||||
font-size = 13
|
||||
adjust-cell-height = 50%
|
||||
adjust-underline-position = 5
|
||||
|
||||
command = /run/current-system/sw/bin/fish -l
|
||||
shell-integration = fish
|
||||
shell-integration-features = cursor, sudo
|
||||
|
||||
macos-titlebar-tabs = true
|
||||
|
||||
window-padding-x = 15
|
||||
window-padding-y = 15
|
||||
3
home/apps/ghostty.nix
Normal file
3
home/apps/ghostty.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{config, ...}: {
|
||||
home.file."${config.xdg.configHome}/ghostty/config".source = ./ghostty.conf;
|
||||
}
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
./fonts.nix
|
||||
|
||||
./apps/vscode.nix
|
||||
./apps/ghostty.nix
|
||||
|
||||
./programs/zsh.nix
|
||||
./programs/fish.nix
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@ if status is-interactive
|
|||
# nix-your-shell
|
||||
nix-your-shell fish | source
|
||||
|
||||
if test -e "$HOME/.iterm2_shell_integration.fish"
|
||||
source "$HOME/.iterm2_shell_integration.fish"
|
||||
end
|
||||
string match -q "$TERM_PROGRAM" "iTerm.app"
|
||||
and source "$HOME/.iterm2_shell_integration.fish"
|
||||
|
||||
string match -q "$TERM_PROGRAM" ghostty
|
||||
and source "/Applications/Ghostty.app/Contents/Resources/ghostty/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
|
||||
end
|
||||
|
|
|
|||
|
|
@ -23,4 +23,7 @@ function take() {
|
|||
eval "$(nix-your-shell zsh)"
|
||||
|
||||
# iTerm
|
||||
[ -e "$HOME/.iterm2_shell_integration.zsh" ] && source "$HOME/.iterm2_shell_integration.zsh"
|
||||
[[ "$TERM_PROGRAM" == "iTerm.app" ]] && source "$HOME/.iterm2_shell_integration.zsh"
|
||||
|
||||
# Ghostty
|
||||
[[ "$TERM_PROGRAM" == "ghostty" ]] && source "/Applications/Ghostty.app/Contents/Resources/ghostty/shell-integration/zsh/ghostty-integration"
|
||||
|
|
|
|||
|
|
@ -25,17 +25,7 @@ in {
|
|||
build-users-group = "nixbld";
|
||||
trusted-users = ["ryanccn"];
|
||||
sandbox = true;
|
||||
|
||||
extra-substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://crane.cachix.org"
|
||||
"https://cache.garnix.io"
|
||||
];
|
||||
extra-trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk="
|
||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||
];
|
||||
use-xdg-base-directories = true;
|
||||
|
||||
nix-path = config.nix.nixPath;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue