dotfiles/nix/modules/home-manager/features/desktop/ghostty.nix
2025-01-04 14:09:19 +00:00

39 lines
637 B
Nix

{
config,
inputs,
lib,
system,
...
}:
with lib;
let
cfg = config.features.desktop.ghostty;
pkgs-master = inputs.nixpkgs-master.legacyPackages.${system};
in
{
options.features.desktop.ghostty.enable = mkEnableOption "Enable ghostty";
config = mkIf cfg.enable {
home.packages = [ pkgs-master.ghostty ];
xdg.configFile."ghostty/config".text = ''
background = #000000
# Disable ligatures.
font-feature = -calt
font-feature = -liga
font-feature = -dlig
font-size = 15
window-decoration = false
window-padding-x = 10
window-padding-y = 10
'';
};
}