{ config, profile, pkgs, ... }: let extensions = if profile == "darwin" then "Library/Application Support/Zed/extensions/installed" else ".local/share/zed/extensions/installed"; in { files."${extensions}/flow-icons".source = pkgs.flow-icons; xdg.config.files."zed/settings.json".text = builtins.toJSON { # Appearance Settings ------------------------------------------------------ theme = "Carbonfox"; icon_theme = "Flow Dim"; buffer_font_family = "Berkeley Mono"; buffer_font_fallbacks = [ "Symbols Nerd Font Mono" ]; buffer_font_features = { calt = true; }; buffer_line_height = { custom = 1.5; }; buffer_font_size = 12; ui_font_family = "Inter"; ui_font_weight = 500; ui_font_size = 14; unnecessary_code_fade = 0.25; active_pane_modifiers = { inactive_opacity = 0.75; }; collaboration_panel = { button = false; }; image_viewer = { unit = "decimal"; }; show_call_status_icon = false; toolbar = { code_actions = true; agent_review = false; }; title_bar = { show_branch_status_icon = true; show_onboarding_banner = false; show_user_picture = false; show_user_menu = false; show_sign_in = false; }; project_panel = { default_width = 300; entry_spacing = "standard"; indent_guides = { show = "never"; }; dock = "left"; }; outline_panel = { default_width = 300; folder_icons = false; file_icons = false; git_status = false; dock = "left"; }; git_panel = { default_width = 300; folder_icons = false; dock = "left"; }; tabs = { file_icons = true; git_status = false; show_diagnostics = "all"; }; terminal = { cursor_shape = "bar"; scrollbar = { show = "auto"; }; toolbar = { breadcrumbs = false; }; env = { TERM = "xterm-256color"; }; }; # Editor Settings ---------------------------------------------------------- use_smartcase_search = true; close_on_file_delete = true; default_open_behavior = "existing_window"; cli_default_open_behavior = "new_window"; when_closing_with_no_tabs = "keep_window_open"; minimum_contrast_for_highlights = 50; on_last_window_closed = "quit_app"; allow_rewrap = "in_selections"; fast_scroll_sensitivity = 2.0; snippet_sort_order = "bottom"; semantic_tokens = "combined"; lsp_highlight_debounce = 60; inline_code_actions = false; autosave = "on_focus_change"; wrap_guides = [ 80 ]; auto_install_extensions = { git-firefly = true; carbonfox = true; html = true; toml = true; nix = true; }; search = { center_on_match = true; regex = true; }; # Agent Settings ----------------------------------------------------------- agent = { dock = "right"; default_width = 325; max_content_width = 650; enable_feedback = false; play_sound_when_agent_done = "always"; notify_when_agent_waiting = "all_screens"; }; # Telemetry Settings ------------------------------------------------------- telemetry = { anthropic_retention = false; diagnostics = false; metrics = false; }; }; }