From 00a536c4575175cfae2d03528c495189218e0ecf Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 25 Jun 2024 20:36:27 +0200 Subject: [PATCH] home/fcitx5: force install profile on activation --- home/services/fcitx5.nix | 43 +++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/home/services/fcitx5.nix b/home/services/fcitx5.nix index 58b4aa7..cf7c3cc 100644 --- a/home/services/fcitx5.nix +++ b/home/services/fcitx5.nix @@ -17,26 +17,29 @@ in xdg.configFile = let format = pkgs.formats.ini { }; in { - "fcitx5/profile".source = format.generate "fcitx5-profile" { - "Groups/0" = { - Name = "Default"; - "Default Layout" = "us"; - DefaultIM = "mozc"; - }; - "Groups/0/Items/0" = { - Name = "keyboard-us"; - Layout = ""; - }; - "Groups/0/Items/1" = { - Name = "keyboard-no"; - Layout = ""; - }; - "Groups/0/Items/2" = { - Name = "mozc"; - Layout = ""; - }; - GroupOrder = { - "0" = "Default"; + "fcitx5/profile" = { + force = true; + source = format.generate "fcitx5-profile" { + "Groups/0" = { + Name = "Default"; + "Default Layout" = "us"; + DefaultIM = "mozc"; + }; + "Groups/0/Items/0" = { + Name = "keyboard-us"; + Layout = ""; + }; + "Groups/0/Items/1" = { + Name = "keyboard-no"; + Layout = ""; + }; + "Groups/0/Items/2" = { + Name = "mozc"; + Layout = ""; + }; + GroupOrder = { + "0" = "Default"; + }; }; };