current
 1{lib, ...}: {
 2  den.aspects.desktop.provides.terminal.provides.ghostty.homeManager = {osConfig, ...}: {
 3    programs.ghostty = {
 4      enable = true;
 5      enableBashIntegration = true;
 6      enableFishIntegration = true;
 7      settings = {
 8        # Common
 9        command = "fish";
10        copy-on-select = false;
11        window-inherit-working-directory = false;
12        tab-inherit-working-directory = true;
13        split-inherit-working-directory = true;
14
15        # Style
16        window-padding-x = 5;
17        window-padding-y = 5;
18        window-padding-balance = true;
19        window-height = 32;
20        window-width = 128;
21        window-new-tab-position = "current";
22        window-decoration = lib.mkIf osConfig.programs.niri.enable "none";
23      };
24    };
25  };
26
27  den.aspects.desktop.provides.terminal.provides.ghostty.provides.xdg-term-exec.homeManager = {
28    xdg.terminal-exec = {
29      enable = true;
30      settings = {
31        default = ["com.mitchellh.ghostty.desktop"];
32      };
33    };
34  };
35}