1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00

fcitx5: fix iniFormat usage (#6899)

This commit is contained in:
awwpotato 2025-04-23 13:10:12 -07:00 committed by GitHub
parent 6d1f834ca6
commit d31710fb2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -222,7 +222,7 @@ in
optionalFile =
p: f: v:
lib.optionalAttrs (v != { }) {
"fcitx5/${p}".source = f v;
"fcitx5/${p}".source = f "fcitx5-${builtins.replaceStrings [ "/" ] [ "-" ] p}" v;
};
in
lib.attrsets.mergeAttrsList [
@ -249,7 +249,7 @@ in
else if builtins.isString attrs.theme then
pkgs.writeText "fcitx5-theme.conf" attrs.theme
else
iniFormat.generate attrs.theme
iniFormat.generate "fcitx5-${name}-theme" attrs.theme
))
]
) cfg.themes;