feat: initial macos setup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{ pkgs, lib, isDarwin, ... }:
|
||||
let
|
||||
baseKeybinds = [
|
||||
"ctrl+t=new_tab"
|
||||
@@ -16,7 +16,10 @@ in
|
||||
{
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
|
||||
# nixpkgs `ghostty` is the Linux/GTK build (Linux-only meta.platforms).
|
||||
# On macOS use `ghostty-bin`, the repackaged official .dmg.
|
||||
package = if isDarwin then pkgs.ghostty-bin else pkgs.ghostty;
|
||||
|
||||
settings = {
|
||||
# Font Settings
|
||||
"font-family" = "Roboto Mono";
|
||||
@@ -93,8 +96,8 @@ in
|
||||
|
||||
# Keybindings (Tabs & Splits)
|
||||
"keybind" = baseKeybinds
|
||||
++ lib.optionals pkgs.stdenv.isDarwin [ "super+d=unbind" ];
|
||||
} // lib.optionalAttrs pkgs.stdenv.isDarwin {
|
||||
++ lib.optionals isDarwin [ "super+d=unbind" ];
|
||||
} // lib.optionalAttrs isDarwin {
|
||||
"macos-titlebar-style" = "transparent";
|
||||
"macos-icon" = "official";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user