nixos-config/modules/services/i18n/default.nix

17 lines
331 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2021-08-02 19:52:11 +00:00
let
cfg = config.ptw.system.i18n;
in {
options.ptw.system.i18n = {
enable = lib.mkEnableOption "Configure i18n services on the system";
2021-08-02 19:52:11 +00:00
};
config = lib.mkIf cfg.enable {
i18n.inputMethod = {
2021-11-04 16:42:12 +00:00
enabled = "fcitx";
ibus.engines = with pkgs.ibus-engines; [ mozc ];
};
};
2021-08-02 19:52:11 +00:00
}