mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-29 04:26:32 +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 =
|
environment.etc =
|
||||||
let
|
let
|
||||||
lib.optionalFile = p: f: v: lib.optionalAttrs (v != { }) {
|
optionalFile = p: f: v: lib.optionalAttrs (v != { }) {
|
||||||
"xdg/fcitx5/${p}".text = f v;
|
"xdg/fcitx5/${p}".text = f v;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.attrsets.mergeAttrsList [
|
lib.attrsets.mergeAttrsList [
|
||||||
(lib.optionalFile "config" (lib.generators.toINI { }) cfg.settings.globalOptions)
|
(optionalFile "config" (lib.generators.toINI { }) cfg.settings.globalOptions)
|
||||||
(lib.optionalFile "profile" (lib.generators.toINI { }) cfg.settings.inputMethod)
|
(optionalFile "profile" (lib.generators.toINI { }) cfg.settings.inputMethod)
|
||||||
(lib.concatMapAttrs
|
(lib.concatMapAttrs
|
||||||
(name: value: lib.optionalFile
|
(name: value: optionalFile
|
||||||
"conf/${name}.conf"
|
"conf/${name}.conf"
|
||||||
(lib.generators.toINIWithGlobalSection { })
|
(lib.generators.toINIWithGlobalSection { })
|
||||||
value)
|
value)
|
||||||
|
|
|
@ -14,22 +14,20 @@ rec {
|
||||||
pkgs.alacritty
|
pkgs.alacritty
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.displayManager.autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = "alice";
|
||||||
|
};
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
displayManager.lightdm.enable = true;
|
||||||
displayManager = {
|
|
||||||
lightdm.enable = true;
|
|
||||||
autoLogin = {
|
|
||||||
enable = true;
|
|
||||||
user = "alice";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
desktopManager.xfce.enable = true;
|
desktopManager.xfce.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.inputMethod = {
|
i18n.inputMethod = {
|
||||||
enabled = "fcitx5";
|
enable = true;
|
||||||
|
type = "fcitx5";
|
||||||
fcitx5.addons = [
|
fcitx5.addons = [
|
||||||
pkgs.fcitx5-chinese-addons
|
pkgs.fcitx5-chinese-addons
|
||||||
pkgs.fcitx5-hangul
|
pkgs.fcitx5-hangul
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue