1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{ config, lib, ... }: let cfg = config.soispha.services.inputMethod; in { options.soispha.services.inputMethod = { enable = lib.mkEnableOption "inputMethod"; }; config.i18n.inputMethod = lib.mkIf cfg.enable { enable = true; type = "ibus"; }; }