summaryrefslogtreecommitdiff
path: root/home/ghostty.nix
blob: fbdd5c37444e684dfd34c8fed6a402eaa19beb50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ pkgs, ... }:

{
  home.packages = [ pkgs.ghostty-bin.terminfo ];

  programs.ghostty = {
    enable = true;

    package = pkgs.ghostty-bin;
    enableFishIntegration = true;

    settings = {
      env = [ "TERMINFO=${pkgs.ghostty-bin.terminfo}/share/terminfo" ];
      clipboard-read = "allow";
      clipboard-write = "allow";
      copy-on-select = true;
      theme = "Rose Pine";
      font-family = "ComicCode Nerd Font SemiBold";
      font-style-italic = "ComicCode Nerd Font Light";
      macos-option-as-alt = "left";
      macos-icon = "blueprint";
      font-feature = [
        "-calt"
        "-liga"
        "-dlig"
      ];
      cursor-click-to-move = true;
      keybind = [
        "global:cmd+grave_accent=toggle_quick_terminal"
        # "alt+i=inspector:toggle"
        "super+t=unbind"
      ];
      quick-terminal-position = "center";
      quick-terminal-animation-duration = 0.1;
    };
  };

}