{ lib, config, pkgs, ... }: let inherit (lib) mkEnableOption mkIf; cfg = config.metacfg.tools.alacritty; in { options.metacfg.tools.alacritty = { enable = mkEnableOption "alacritty"; }; config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ alacritty ]; }; }