1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39: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:
Subin Kim 2022-01-18 03:53:42 +09:00 committed by GitHub
parent f71d41ba36
commit a69f3e9b03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions

View file

@ -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 = {
Description = "Kime input method editor";
PartOf = [ "graphical-session.target" ]; 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" ];
}; };
}; };
} }

View file

@ -1 +1,4 @@
{ input-method-fcitx5-configuration = ./fcitx5-configuration.nix; } {
input-method-fcitx5-configuration = ./fcitx5-configuration.nix;
input-method-kime-configuration = ./kime-configuration.nix;
}

View 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
'';
}