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

20 lines
466 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 {
2021-11-04 17:08:36 +00:00
# TODO: mozc cannot be configured for some reason
i18n.inputMethod = {
2021-11-04 16:42:12 +00:00
enabled = "fcitx";
2021-11-04 17:08:36 +00:00
fcitx.engines = with pkgs.fcitx-engines; [ mozc ];
};
2021-11-04 17:08:36 +00:00
environment.systemPackages = with pkgs; [ fcitx5-configtool fcitx5-gtk ];
};
2021-08-02 19:52:11 +00:00
}