diff --git a/modules/i18n/input-method/kime.nix b/modules/i18n/input-method/kime.nix index 4a84768e7..70f321900 100644 --- a/modules/i18n/input-method/kime.nix +++ b/modules/i18n/input-method/kime.nix @@ -48,11 +48,12 @@ in { replaceStrings [ "\\\\" ] [ "\\" ] (builtins.toJSON cfg.config); systemd.user.services.kime-daemon = { - Unit = { Description = "Kime input method editor"; }; - PartOf = [ "graphical-session.target" ]; + Unit = { + Description = "Kime input method editor"; + PartOf = [ "graphical-session.target" ]; + }; Service.ExecStart = "${pkgs.kime}/bin/kime"; Install.WantedBy = [ "graphical-session.target" ]; }; }; - } diff --git a/tests/modules/i18n/input-method/default.nix b/tests/modules/i18n/input-method/default.nix index f214d8513..a9d5764df 100644 --- a/tests/modules/i18n/input-method/default.nix +++ b/tests/modules/i18n/input-method/default.nix @@ -1 +1,4 @@ -{ input-method-fcitx5-configuration = ./fcitx5-configuration.nix; } +{ + input-method-fcitx5-configuration = ./fcitx5-configuration.nix; + input-method-kime-configuration = ./kime-configuration.nix; +} diff --git a/tests/modules/i18n/input-method/kime-configuration.nix b/tests/modules/i18n/input-method/kime-configuration.nix new file mode 100644 index 000000000..fe50273fb --- /dev/null +++ b/tests/modules/i18n/input-method/kime-configuration.nix @@ -0,0 +1,14 @@ +{ config, pkgs, ... }: + +{ + i18n.inputMethod = { + enabled = "kime"; + kime.config = { engine = { hangul = { layout = "dubeolsik"; }; }; }; + }; + + test.stubs.kime = { outPath = null; }; + + nmt.script = '' + assertFileExists home-files/.config/systemd/user/kime-daemon.service + ''; +}