2023-12-23 01:49:53 +00:00
|
|
|
{ flake, pkgs, lib, ... }: {
|
2023-11-03 04:12:17 +00:00
|
|
|
imports = [ flake.inputs.ghostty.homeModules.default ];
|
|
|
|
|
|
|
|
programs.ghostty = {
|
|
|
|
enable = true;
|
|
|
|
# ghostty is externally managed for now
|
|
|
|
package = null;
|
2023-12-23 01:49:53 +00:00
|
|
|
settings = let font = "RecMonoDuotone Nerd Font";
|
|
|
|
in {
|
2023-11-03 04:12:17 +00:00
|
|
|
# TODO: auto-theme
|
|
|
|
config-file = [ "${pkgs.terminal-themes}/ghostty/rose-pine" ];
|
|
|
|
font-family = font;
|
2023-12-23 01:49:53 +00:00
|
|
|
# font-family-bold = "${font} Bold";
|
|
|
|
# font-family-italic = "${font} Italic";
|
|
|
|
# font-family-bold-italic = "${font} Bold Italic";
|
|
|
|
# font-codepoint-map =
|
|
|
|
# "U+E5FA-U+E62B,U+E700-U+E7C5,U+F000-U+F2E0,U+E200-U+E2A9,U+F500-U+FD46,U+E300-U+E3EB,U+F400-U+F4A8,U+2665,U+26a1,U+F27C,U+E0A3,U+E0B4-U+E0C8,U+E0CA,U+E0CC-U+E0D2,U+E0D4,U+23FB-U+23FE,U+2B58,U+F300-U+F313,U+E000-U+E00D=RecMonoDuotone Nerd Font";
|
2023-11-03 04:12:17 +00:00
|
|
|
font-size = 15;
|
|
|
|
background-opacity = 0.95;
|
|
|
|
unfocused-split-opacity = 0.8;
|
|
|
|
window-decoration = true;
|
|
|
|
window-padding-x = 10;
|
|
|
|
window-padding-y = 10;
|
2023-12-23 01:49:53 +00:00
|
|
|
window-inherit-working-directory = false;
|
|
|
|
working-directory = "home";
|
2023-11-03 04:12:17 +00:00
|
|
|
} // lib.optionalAttrs pkgs.stdenv.isDarwin {
|
2023-12-23 01:49:53 +00:00
|
|
|
copy-on-select = "clipboard";
|
2023-11-03 04:12:17 +00:00
|
|
|
background-blur-radius = 20;
|
|
|
|
macos-non-native-fullscreen = "visible-menu";
|
|
|
|
macos-option-as-alt = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|