{ pkgs, lib, ... }: { home.packages = [ pkgs.nerd-fonts.symbols-only #pkgs.nerd-fonts.DejaVuSansMono ]; xdg.configFile."ghostty/custom.css".source = ghostty/custom.css; programs.ghostty = { enable = true; # ConfigurationHelper: https://ghostty.zerebos.com settings = { app-notifications = [ "no-clipboard-copy" ]; #command = "tmux"; #gtk-single-instance = "detect"; background = "#000000"; clipboard-read = "allow"; clipboard-trim-trailing-spaces = true; clipboard-write = "allow"; confirm-close-surface = false; # ligatures are confusing font-feature = [ "-calt" "-dalt" "-dlig" ]; font-size = lib.mkDefault 9; copy-on-select = true; cursor-style = "bar"; cursor-style-blink = true; # Note: home-manager currently does not allow filepaths here, hence use a string. gtk-custom-css = "/home/julm/.config/ghostty/custom.css"; gtk-single-instance = "desktop"; gtk-titlebar = false; linux-cgroup = "always"; linux-cgroup-hard-fail = "true"; quit-after-last-window-closed = true; # Keep Ghostty running a bit so that new window creation is faster. quit-after-last-window-closed-delay = "15m"; shell-integration = "detect"; shell-integration-features = [ "no-cursor" "no-sudo" "no-title" # MaintenanceToDo: enable when ghostty is updated to support it #"ssh-terminfo" #"ssh-env" ]; working-directory = "home"; }; }; }