i18n: Move module to services
This commit is contained in:
1 parent
f85c7db354
commit
e9de019d8d
3 files changed
+6
-3
No files matched your search
@@ -0,0 +1,23 @@
|
||||
{ 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 {
|
||||
i18n.inputMethod = {
|
||||
enabled = "fcitx";
|
||||
ibus.engines = with pkgs.ibus-engines; [ mozc ];
|
||||
};
|
||||
|
||||
#environment.variables = {
|
||||
# # TODO: Use pam_environment
|
||||
# "GTK_IM_MODULE" = "xim";
|
||||
# "XMODIFIERS" = "@im=ibus";
|
||||
# "QT_IM_MODULE" = "xim";
|
||||
#};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user