{ config, lib, ... }: with lib; let cfg = config.nixfiles.modules.alacritty; in { options.nixfiles.modules.alacritty.enable = mkEnableOption "Alacritty terminal emulator"; config = mkIf cfg.enable { hm.programs.alacritty = { enable = true; settings = { window = { padding = with config.stylix.fonts.sizes; { x = terminal; y = terminal; }; dynamic_padding = false; decorations = "Full"; startup_mode = "Maximized"; }; selection.save_to_clipboard = true; cursor = { style = { shape = "Block"; blinking = "On"; }; vi_mode_style = { shape = "Block"; blinking = "Off"; }; }; }; }; }; }