{ config, lib, ... }: let cfg = config.my.home.terminal; in { imports = [ ./alacritty ]; options.my.home = with lib; { terminal = { program = mkOption { type = with types; nullOr (enum [ "alacritty" ]); default = null; example = "alacritty"; description = "Which terminal to use for home session"; }; }; }; config.home.sessionVariables = lib.mkIf (cfg.program != null) { TERMINAL = cfg.program; }; }