config/modules/home/apps/term/ghostty/default.nix
2025-06-15 18:15:28 -04:00

34 lines
617 B
Nix

{
options,
config,
lib,
...
}:
with lib;
with lib.custom; let
cfg = config.apps.term.ghostty;
in {
options.apps.term.ghostty = with types; {
enable = mkBoolOpt false "Enable Ghostty Term";
};
config = mkIf cfg.enable {
programs.ghostty = {
enable = true;
settings = {
font-family = fonts.mono;
gtk-single-instance = true;
gtk-titlebar = false;
background = colors.crust.hex;
alpha-blending = "linear-corrected";
window-padding-x = 20;
window-padding-y = 20;
window-padding-balance = true;
};
};
};
}