mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
kime: Fix kime systemd service broken (#2621)
* kime: Fix kime systemd service * kime: Add test case * kime: Add test stub package
This commit is contained in:
parent
f71d41ba36
commit
a69f3e9b03
3 changed files with 22 additions and 4 deletions
|
@ -48,11 +48,12 @@ in {
|
||||||
replaceStrings [ "\\\\" ] [ "\\" ] (builtins.toJSON cfg.config);
|
replaceStrings [ "\\\\" ] [ "\\" ] (builtins.toJSON cfg.config);
|
||||||
|
|
||||||
systemd.user.services.kime-daemon = {
|
systemd.user.services.kime-daemon = {
|
||||||
Unit = { Description = "Kime input method editor"; };
|
Unit = {
|
||||||
PartOf = [ "graphical-session.target" ];
|
Description = "Kime input method editor";
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
Service.ExecStart = "${pkgs.kime}/bin/kime";
|
Service.ExecStart = "${pkgs.kime}/bin/kime";
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
{ input-method-fcitx5-configuration = ./fcitx5-configuration.nix; }
|
{
|
||||||
|
input-method-fcitx5-configuration = ./fcitx5-configuration.nix;
|
||||||
|
input-method-kime-configuration = ./kime-configuration.nix;
|
||||||
|
}
|
||||||
|
|
14
tests/modules/i18n/input-method/kime-configuration.nix
Normal file
14
tests/modules/i18n/input-method/kime-configuration.nix
Normal file
|
@ -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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue