mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-28 20:16:41 +03:00
nixos/fcitx5: fix evaluation (#338621)
This commit is contained in:
commit
075c6ce71f
2 changed files with 12 additions and 14 deletions
|
@ -119,15 +119,15 @@ in
|
|||
];
|
||||
environment.etc =
|
||||
let
|
||||
lib.optionalFile = p: f: v: lib.optionalAttrs (v != { }) {
|
||||
optionalFile = p: f: v: lib.optionalAttrs (v != { }) {
|
||||
"xdg/fcitx5/${p}".text = f v;
|
||||
};
|
||||
in
|
||||
lib.attrsets.mergeAttrsList [
|
||||
(lib.optionalFile "config" (lib.generators.toINI { }) cfg.settings.globalOptions)
|
||||
(lib.optionalFile "profile" (lib.generators.toINI { }) cfg.settings.inputMethod)
|
||||
(optionalFile "config" (lib.generators.toINI { }) cfg.settings.globalOptions)
|
||||
(optionalFile "profile" (lib.generators.toINI { }) cfg.settings.inputMethod)
|
||||
(lib.concatMapAttrs
|
||||
(name: value: lib.optionalFile
|
||||
(name: value: optionalFile
|
||||
"conf/${name}.conf"
|
||||
(lib.generators.toINIWithGlobalSection { })
|
||||
value)
|
||||
|
|
|
@ -14,22 +14,20 @@ rec {
|
|||
pkgs.alacritty
|
||||
];
|
||||
|
||||
services.displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = "alice";
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
displayManager = {
|
||||
lightdm.enable = true;
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "alice";
|
||||
};
|
||||
};
|
||||
|
||||
displayManager.lightdm.enable = true;
|
||||
desktopManager.xfce.enable = true;
|
||||
};
|
||||
|
||||
i18n.inputMethod = {
|
||||
enabled = "fcitx5";
|
||||
enable = true;
|
||||
type = "fcitx5";
|
||||
fcitx5.addons = [
|
||||
pkgs.fcitx5-chinese-addons
|
||||
pkgs.fcitx5-hangul
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue