.files/nix/homeModules/common/ghostty.nix
2026-01-23 17:43:32 +01:00

56 lines
1.1 KiB
Nix

{
lib,
pkgs,
config,
...
}:
let
cfg = config.programs.ghostty;
in
{
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.nerd-fonts.IosevkaTermUbuntuMono
];
programs.ghostty.settings = {
# Declutter
gtk-titlebar = false;
window-decoration = "none";
confirm-close-surface = false;
resize-overlay = "never";
# Fonts
font-family = "IosevkaTermUbuntuMono NFM";
adjust-cursor-thickness = 2;
keybind = [
"ctrl+shift+==increase_font_size:1"
"ctrl+-=decrease_font_size:1"
];
# Theme
background = "#fdf6e3";
foreground = "#073642";
window-padding-color = "extend";
window-padding-balance = true;
palette = [
"0=#073642"
"1=#af005f"
"2=#859900"
"3=#ba9b23"
"4=#268bd2"
"5=#5f5faf"
"6=#2aa198"
"7=#a0a1a7"
"8=#4d4d4d"
"9=#d33682"
"10=#29a350"
"11=#d6b429"
"12=#469edd"
"13=#6060d1"
"14=#4bccc1" # a platupus? perry the platupus?
"15=#eeeadd"
];
};
};
}