2022-01-17 19:53:42 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2023-10-07 18:06:10 +02:00
|
|
|
let
|
|
|
|
|
|
|
|
kimeConfig = ''
|
|
|
|
daemon:
|
|
|
|
modules: [Xim,Indicator]
|
|
|
|
indicator:
|
|
|
|
icon_color: White
|
|
|
|
engine:
|
|
|
|
hangul:
|
|
|
|
layout: dubeolsik
|
|
|
|
'';
|
|
|
|
|
|
|
|
in {
|
2022-01-17 19:53:42 +01:00
|
|
|
i18n.inputMethod = {
|
|
|
|
enabled = "kime";
|
2023-10-07 18:06:10 +02:00
|
|
|
kime.extraConfig = kimeConfig;
|
2022-01-17 19:53:42 +01:00
|
|
|
};
|
|
|
|
|
2023-10-07 18:06:10 +02:00
|
|
|
test.stubs = {
|
|
|
|
kime = { outPath = null; };
|
|
|
|
gtk2 = {
|
|
|
|
buildScript = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
echo '#/usr/bin/env bash' > $out/bin/gtk-query-immodules-2.0
|
|
|
|
chmod +x $out/bin/*
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
gtk3 = {
|
|
|
|
buildScript = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
echo '#/usr/bin/env bash' > $out/bin/gtk-query-immodules-3.0
|
|
|
|
chmod +x $out/bin/*
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2022-01-17 19:53:42 +01:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/systemd/user/kime-daemon.service
|
2023-10-07 18:06:10 +02:00
|
|
|
assertFileExists home-files/.config/kime/config.yaml
|
|
|
|
assertFileContent home-files/.config/kime/config.yaml \
|
|
|
|
${builtins.toFile "kime-expected.yaml" kimeConfig}
|
2022-01-17 19:53:42 +01:00
|
|
|
'';
|
|
|
|
}
|