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

20 lines
460 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.ptw.system.i18n;
in {
options.ptw.system.i18n = {
enable = lib.mkEnableOption "Configure i18n services on the system";
};
config = lib.mkIf cfg.enable {
# TODO: mozc cannot be configured for some reason
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [ fcitx5-mozc ];
};
environment.systemPackages = with pkgs; [ fcitx5-configtool fcitx5-gtk ];
};
}