fix: kitty + nushell on macOS

This commit is contained in:
Ryan Yin
2023-07-16 16:34:34 +08:00
parent 59493d03fa
commit 1ab318b6db

View File

@@ -1,17 +1,20 @@
{ ... }: {
{ lib, pkgs, ... }: {
programs.kitty = {
enable = true;
theme = "Catppuccin-Mocha";
# darwinLaunchOptions = {};
font = {
name = " JetBrainsMono Nerd Font";
name = "JetBrainsMono Nerd Font";
size = 14;
};
settings = {
background_opacity = "0.92";
background_opacity = "0.95";
macos_option_as_alt = true; # Option key acts as Alt on macOS
scrollback_lines = 10000;
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";
};
};
}