From 018585b82f948b600a5116f9216bfe1cd6dd09c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=99=E3=81=B1=E3=82=8B?= Date: Wed, 7 Jan 2026 10:45:01 +0900 Subject: [PATCH 1/2] fix(ime): ensure macSKK loads kana-rule.conf provided by nix --- home/ime.nix | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/home/ime.nix b/home/ime.nix index 2937e8c..0383b7e 100644 --- a/home/ime.nix +++ b/home/ime.nix @@ -1,8 +1,23 @@ -{ lib, pkgs, ... }: { - home.file."Library/Containers/net.mtgto.inputmethod.macSKK/Data/Documents/Settings/kana-rule.conf" = - lib.mkIf pkgs.stdenv.isDarwin - { - source = ../ime/kana-rule.conf; - }; + config, + lib, + pkgs, + ... +}: +let + macSkkSettingsDir = "${config.home.homeDirectory}/Library/Containers/net.mtgto.inputmethod.macSKK/Data/Documents/Settings"; +in +{ + # macSKKがnix storeにある設定ファイルを読もうとしてもTCCでブロックされてしまうため、 + # 直接配置する。 + home.activation.installMacSkkKanaRule = lib.mkIf pkgs.stdenv.isDarwin ( + lib.hm.dag.entryAfter [ "writeBoundary" ] '' + set -eu + + mkdir -p ${lib.escapeShellArg macSkkSettingsDir} + + install -m 0644 ${lib.escapeShellArg (toString ../ime/kana-rule.conf)} \ + ${lib.escapeShellArg "${macSkkSettingsDir}/kana-rule.conf"} + '' + ); } From d20d81f03100939f7e9fc1ad3ca02368a1eccec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=99=E3=81=B1=E3=82=8B?= Date: Wed, 7 Jan 2026 10:45:56 +0900 Subject: [PATCH 2/2] feat(ime): type arrows with `xxh`, `xxj`, `xxk`, `xxl` (#25) --- ime/kana-rule.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ime/kana-rule.conf b/ime/kana-rule.conf index 82bbdd1..9cc3900 100644 --- a/ime/kana-rule.conf +++ b/ime/kana-rule.conf @@ -21,6 +21,10 @@ x!,.ᐟ.ᐟ.ᐟ ],」 z[,『 z],』 +xxh,← +xxj,↓ +xxk,↑ +xxl,→ ### AZIK kana-kanji rules (Customized) a,あ