{ config, lib, pkgs, ... }: let cfg = config.sydnix.users.crumb.fcitx5; in { options.sydnix.users.crumb.fcitx5 = { enable = lib.mkEnableOption "fcitx5 input method"; }; config = lib.mkIf cfg.enable { i18n.inputMethod = { enable = true; type = "fcitx5"; fcitx5 = { waylandFrontend = true; settings.addons."quickphrase".sections = { TriggerKey = { "0" = "Super+grave"; "1" = "Super+semicolon"; }; }; }; }; }; }