.dotfiles/dot_config/flake/home/ghostty.nix
Tyler Mayoff 7ccdf27209 niri (#39)
Reviewed-on: https://codeberg.org/tmayoff/.dotfiles/pulls/39
Co-authored-by: Tyler Mayoff <tyler@tylermayoff.com>
Co-committed-by: Tyler Mayoff <tyler@tylermayoff.com>
2025-08-31 20:06:20 +02:00

35 lines
874 B
Nix

{
pkgs,
...
}: let
catppuccin = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "ghostty";
rev = "61bed99612125e9873cadfd0857137cdd2568a21";
hash = "sha256-GM/wKBUdgly7lKs8IiGKB7cBaUuE+GSubLgOMZNmsZ4=";
};
in {
programs.ghostty = {
enable = true;
package =
if pkgs.stdenv.isDarwin
then pkgs.unstable.ghostty-bin
else pkgs.unstable.ghostty;
settings = {
theme = "dark:rose-pine,light:rose-pine-dawn";
macos-option-as-alt = "left";
keybind = [
"alt+left=unbind"
"alt+right=unbind"
"global:f12=toggle_quick_terminal"
];
};
};
xdg.configFile."ghostty/themes/catppuccin-latte.conf".source = "${catppuccin}/themes/catppuccin-latte.conf";
xdg.configFile."ghostty/themes/catppuccin-macchiato.conf".source = "${catppuccin}/themes/catppuccin-macchiato.conf";
}