diff --git a/nixos/modules/i18n/input-method/fcitx5.nix b/nixos/modules/i18n/input-method/fcitx5.nix index 989e5fbf8239..a4c9c7787eff 100644 --- a/nixos/modules/i18n/input-method/fcitx5.nix +++ b/nixos/modules/i18n/input-method/fcitx5.nix @@ -109,7 +109,8 @@ in (pkgs.writeTextDir "share/fcitx5/data/QuickPhrase.mb" ( lib.concatStringsSep "\n" ( lib.mapAttrsToList ( - name: value: "${name} ${builtins.replaceStrings [ "\\" "\n" ] [ "\\\\" "\\n" ] value}" + name: value: + "${name} \"${builtins.replaceStrings [ "\\" "\n" "\"" ] [ "\\\\" "\\n" "\\\"" ] value}\"" ) cfg.quickPhrase ) ))