{ config, pkgs, ... }: let kitty-xterm = pkgs.writeShellScriptBin "xterm" '' ${config.programs.kitty.package}/bin/kitty -1 "$@" ''; in { home = { packages = [ kitty-xterm ]; sessionVariables = { TERMINAL = "kitty -1"; }; }; programs.kitty = { enable = true; settings = { scrollback_lines = 4000; }; }; }