fix: kitty + nushell on macOS

This commit is contained in:
Ryan Yin
2023-07-16 16:34:34 +08:00
parent 59493d03fa
commit 1ab318b6db
+7 -4
View File
@@ -1,17 +1,20 @@
{ ... }: { { lib, pkgs, ... }: {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
theme = "Catppuccin-Mocha"; theme = "Catppuccin-Mocha";
# darwinLaunchOptions = {};
font = { font = {
name = " JetBrainsMono Nerd Font"; name = "JetBrainsMono Nerd Font";
size = 14;
}; };
settings = { settings = {
background_opacity = "0.92"; background_opacity = "0.95";
macos_option_as_alt = true; # Option key acts as Alt on macOS macos_option_as_alt = true; # Option key acts as Alt on macOS
scrollback_lines = 10000; scrollback_lines = 10000;
enable_audio_bell = false; enable_audio_bell = false;
} // lib.mkIf pkgs.stdenv.isDarwin {
# macOS specific settings, force kitty to use nushell as default shell
shell = "/run/current-system/sw/bin/nu";
}; };
}; };
} }