{ config, lib, pkgs, ... }: with lib; let cfg = config.nixfiles.modules.foot; in { options.nixfiles.modules.foot.enable = mkEnableOption "Foot terminal emulator"; config = mkIf cfg.enable { hm = { home.packages = with pkgs; [ libsixel ]; programs.foot = { enable = true; settings = { main = { utmp-helper = "${pkgs.libutempter}/lib/utempter/utempter"; pad = let n = toString config.stylix.fonts.sizes.terminal; in "${n}x${n}"; }; scrollback.lines = pow 2 14; }; }; }; }; }