{ lib, osConfig, ... }:
let
  inherit (lib.modules) mkIf;
in
{
  config = mkIf osConfig.garden.programs.gui.terminals.ghostty.enable {
    xdg.configFile."ghostty/config".text = ''
      title = Ghostty

      shell-integration = none

      background-opacity = 0.95

      font-family = ${osConfig.garden.style.font.name}
      font-size = 13

      command = /etc/profiles/per-user/comfy/bin/fish --login

      theme = catppuccin-mocha
    '';
  };
}
