/ modules / common / ghostty.nix
ghostty.nix
 1  {
 2    config,
 3    lib,
 4    pkgs,
 5    ...
 6  }:
 7  let
 8    inherit (lib) enabled;
 9  in
10  {
11    home-manager.sharedModules = [
12      {
13        home.file.".config/ghostty/config".text = with config.theme; ''
14          ${ghosttyConfig}
15  
16          font-family = ${font.mono.name}
17          font-size = ${toString font.size.normal}
18          background-opacity = 0.8
19          background-blur-radius = 30
20          macos-option-as-alt = true
21          macos-titlebar-style = hidden
22          window-padding-x = ${toString padding}
23          window-padding-y = ${toString padding}
24          command = /run/current-system/sw/bin/nu
25  
26          # Keybindings
27          keybind = ctrl+shift+t=new_tab
28          keybind = ctrl+shift+w=close_surface
29          keybind = ctrl+shift+l=next_tab
30          keybind = ctrl+shift+h=previous_tab
31        '';
32      }
33    ];
34  }