Files
nix-config/modules/graphical/ime.nix
2024-04-17 16:33:12 +02:00

16 lines
306 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.custom.graphical.ime;
in
{
options.custom.graphical.ime = {
enable = mkEnableOption "Enables ime";
};
config = mkIf cfg.enable {
i18n.inputMethod.enabled = "fcitx5";
i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ];
};
}