ghostty.nix 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. { pkgs, config, outputs, ... }:
  2. {
  3. imports = [
  4. outputs.modules.home-manager.ghostty
  5. ];
  6. programs.ghostty-darwin = {
  7. enable = true;
  8. # installBatSyntax = true;
  9. # installVimSyntax = true;
  10. enableBashIntegration = true;
  11. enableZshIntegration = true;
  12. enableFishIntegration = true;
  13. themes = {
  14. iceberg-dark = {
  15. background = "161821";
  16. foreground = "c6c8d1";
  17. selection-background = "1e2132";
  18. selection-foreground = "c6c8d1";
  19. cursor-color = "#d2d4de";
  20. palette = [
  21. # black
  22. "0=#161821"
  23. "8=#6b7089"
  24. # red
  25. "1=#e27878"
  26. "9=#e98989"
  27. # green
  28. "2=#b4be82"
  29. "10=#c0ca8e"
  30. # yellow
  31. "3=#e2a478"
  32. "11=#e9b189"
  33. # blue
  34. "4=#84a0c6"
  35. "12=#91acd1"
  36. # magenta
  37. "5=#a093c7"
  38. "13=#ada0d3"
  39. # cyan
  40. "6=#89b8c2"
  41. "14=#95c4ce"
  42. # white
  43. "7=#c6c8d1"
  44. "15=#d2d4de"
  45. ];
  46. };
  47. };
  48. settings = {
  49. command = "${pkgs.lib.meta.getExe config.programs.fish.package}";
  50. background-opacity = 0.8;
  51. font-family = "FiraCode Nerd Font";
  52. font-size = 11.0;
  53. macos-titlebar-style = "hidden";
  54. theme = "iceberg-dark";
  55. window-padding-x = 12;
  56. window-padding-y = 12;
  57. window-theme = "ghostty";
  58. # clearDefaultKeybindings = true;
  59. keybind = [
  60. "ctrl+a>r=reload_config"
  61. "ctrl+a>shift+5=new_split:right"
  62. "ctrl+a>shift+'=new_split:down"
  63. "ctrl+j=goto_split:bottom"
  64. "ctrl+k=goto_split:top"
  65. "ctrl+h=goto_split:left"
  66. "ctrl+l=goto_split:right"
  67. "ctrl+a>z=toggle_split_zoom"
  68. "opt+j=resize_split:down,10"
  69. "opt+k=resize_split:up,10"
  70. "opt+h=resize_split:left,10"
  71. "opt+l=resize_split:right,10"
  72. ];
  73. };
  74. };
  75. }