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:
parent
6d1f834ca6
commit
d31710fb2c
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue