mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +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;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ lib.mkIf config.test.enableBig {
|
|||
ScaleWithDPI=True
|
||||
'';
|
||||
};
|
||||
classicUiConfig = "Theme=example";
|
||||
settings.addons.classicui.globalSection.Theme = "example";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -32,8 +32,8 @@ lib.mkIf config.test.enableBig {
|
|||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/systemd/user/fcitx5-daemon.service
|
||||
assertFileExists home-files/.config/fcitx5/conf/classicui.conf
|
||||
assertFileExists home-files/.local/share/fcitx5/themes/example/theme.conf
|
||||
assertFileExists home-files/.local/share/fcitx5/conf/classicui.conf
|
||||
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh 'GTK_IM_MODULE'
|
||||
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh 'QT_IM_MODULE'
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue