diff options
| author | David Morgan <djm_uk@protonmail.com> | 2025-09-25 08:59:18 +0100 |
|---|---|---|
| committer | David Morgan <djm_uk@protonmail.com> | 2025-09-25 08:59:18 +0100 |
| commit | fa7381ab8c4ef62bd09d917925f74693ddad0f99 (patch) | |
| tree | 0a81f0deff16d63998fd00b94cbd1b2855d29f64 | |
| parent | 4b4bc8af883931632fec5fe144068cf1242ec522 (diff) | |
| download | dotfiles-fa7381ab8c4ef62bd09d917925f74693ddad0f99.tar.gz | |
Try ghostty on darwin
| -rw-r--r-- | nix-conf/darwin/configuration.nix | 2 | ||||
| -rw-r--r-- | nix-conf/home/includes/ghostty.nix | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/nix-conf/darwin/configuration.nix b/nix-conf/darwin/configuration.nix index 7a60b88..b17bdb2 100644 --- a/nix-conf/darwin/configuration.nix +++ b/nix-conf/darwin/configuration.nix @@ -25,6 +25,7 @@ ps.multi-vterm ])) firefox + ghostty-bin google-chrome # chromium is not available on darwin (in nixpkgs) iterm2 orbstack @@ -49,6 +50,7 @@ { app = "/Applications/Nix Apps/Firefox.app"; } { app = "/Applications/Nix Apps/Slack.app"; } { app = "/Applications/Nix Apps/iTerm2.app"; } + { app = "/Applications/Nix Apps/Ghostty.app"; } { app = "/Applications/Nix Apps/Emacs.app"; } { app = "/Applications/Nix Apps/zoom.us.app"; } { app = "/Applications/Nix Apps/1Password.app"; } diff --git a/nix-conf/home/includes/ghostty.nix b/nix-conf/home/includes/ghostty.nix index 995d258..fd92dc7 100644 --- a/nix-conf/home/includes/ghostty.nix +++ b/nix-conf/home/includes/ghostty.nix @@ -1,5 +1,7 @@ -{ pkgs, ... }: - +{ lib, pkgs, ... }: +let + inherit (lib) optionalAttrs; +in { programs.ghostty = { enable = true; @@ -9,7 +11,7 @@ settings = { font-family = "MesloLGS Nerd Font"; - font-size = 8; + font-size = if pkgs.stdenv.isDarwin then 12 else 8; copy-on-select = "clipboard"; # This is proposed syntax for the future, but ghostty is unusable on darwin until it's implemented #key-remap = [ "ctrl=super" "super=ctrl" ]; @@ -41,6 +43,9 @@ "14=#34e2e2" "15=#eeeeec" ]; + } + // optionalAttrs pkgs.stdenv.isDarwin { + macos-option-as-alt = "left"; }; }; } |