mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00: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);
|
||||
|
||||
systemd.user.services.kime-daemon = {
|
||||
Unit = { Description = "Kime input method editor"; };
|
||||
Unit = {
|
||||
Description = "Kime input method editor";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service.ExecStart = "${pkgs.kime}/bin/kime";
|
||||
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