|
5 | 5 | pkgs, |
6 | 6 | ... |
7 | 7 | }: |
| 8 | +let |
| 9 | + colors = import ./colors.nix; |
| 10 | +in |
8 | 11 | { |
9 | 12 | home.packages = with pkgs; [ |
10 | 13 | amber |
|
45 | 48 | SSH_AUTH_SOCK = "${config.home.homeDirectory}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"; |
46 | 49 | }; |
47 | 50 | imports = [ |
48 | | - ./ghostty.nix |
49 | 51 | ./git.nix |
50 | 52 | ./opencode.nix |
51 | 53 | ./shell.nix |
|
65 | 67 | gh-poi |
66 | 68 | ]; |
67 | 69 | }; |
| 70 | + programs.ghostty = { |
| 71 | + enable = true; |
| 72 | + package = null; # TODO: Add install |
| 73 | + settings = { |
| 74 | + copy-on-select = "clipboard"; |
| 75 | + cursor-style = "block"; |
| 76 | + cursor-style-blink = false; |
| 77 | + font-family = "JetBrains Nerd Font Mono"; |
| 78 | + font-feature = "-calt"; |
| 79 | + font-size = 14; |
| 80 | + keybind = [ |
| 81 | + "global:control+grave_accent=toggle_quick_terminal" |
| 82 | + "ctrl+shift+h=goto_split:left" |
| 83 | + "ctrl+shift+j=goto_split:bottom" |
| 84 | + "ctrl+shift+k=goto_split:top" |
| 85 | + "ctrl+shift+l=goto_split:right" |
| 86 | + "ctrl+shift+enter=toggle_split_zoom" |
| 87 | + "ctrl+shift+u=scroll_page_up" |
| 88 | + "ctrl+shift+d=scroll_page_down" |
| 89 | + ]; |
| 90 | + macos-non-native-fullscreen = true; |
| 91 | + macos-option-as-alt = "left"; |
| 92 | + macos-titlebar-style = "tabs"; |
| 93 | + mouse-hide-while-typing = true; |
| 94 | + shell-integration-features = "no-cursor"; |
| 95 | + theme = "tmm-dark"; |
| 96 | + unfocused-split-opacity = 1; |
| 97 | + window-height = 50; |
| 98 | + window-padding-balance = true; |
| 99 | + window-padding-x = 0; |
| 100 | + window-padding-y = 0; |
| 101 | + window-width = 178; |
| 102 | + }; |
| 103 | + themes = { |
| 104 | + # TODO: Add light theme |
| 105 | + # https://github.com/mitchellh/ghostty/issues/809 |
| 106 | + tmm-dark = { |
| 107 | + background = colors.dark.background; |
| 108 | + cursor-color = colors.dark.cursor; |
| 109 | + foreground = colors.dark.foreground; |
| 110 | + palette = [ |
| 111 | + "0=${colors.dark.black}" |
| 112 | + "1=${colors.dark.red}" |
| 113 | + "2=${colors.dark.green}" |
| 114 | + "3=${colors.dark.yellow}" |
| 115 | + "4=${colors.dark.blue}" |
| 116 | + "5=${colors.dark.orange}" |
| 117 | + "6=${colors.dark.cyan}" |
| 118 | + "7=${colors.dark.white}" |
| 119 | + ]; |
| 120 | + }; |
| 121 | + }; |
| 122 | + }; |
68 | 123 | programs.home-manager.enable = true; |
69 | 124 | programs.ssh = { |
70 | 125 | enable = true; |
|
0 commit comments