1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 00:18:30 +02: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);
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" ];
};
};
}

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