i18n: Move module to services
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
{ 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 = "ibus";
|
||||
ibus.engines = with pkgs.ibus-engines; [ mozc ];
|
||||
};
|
||||
|
||||
#environment.variables = {
|
||||
# # TODO: Use pam_environment
|
||||
# "GTK_IM_MODULE" = "xim";
|
||||
# "XMODIFIERS" = "@im=ibus";
|
||||
# "QT_IM_MODULE" = "xim";
|
||||
#};
|
||||
};
|
||||
}
|
||||
@@ -51,7 +51,10 @@ in {
|
||||
{ command = "${kanshiWrapper}"; always = true; }
|
||||
{ command = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; always = true; }
|
||||
{ command = "${swayIdleWrapper}"; always = true; }
|
||||
];
|
||||
] ++ lib.optional config.ptw.system.i18n.enable {
|
||||
command = "${pkgs.fcitx5}/bin/fcitx -d";
|
||||
always = true;
|
||||
};
|
||||
modifier = "${modifier}";
|
||||
gaps = {
|
||||
inner = 5;
|
||||
|
||||
Reference in New Issue
Block a user