New input method syntax
This commit is contained in:
parent
c4551b3839
commit
d2429fa721
|
@ -6,16 +6,15 @@ in {
|
||||||
enable = mkEnableOption "Enables fcitx5 input method engine and mozc en anthy methods";
|
enable = mkEnableOption "Enables fcitx5 input method engine and mozc en anthy methods";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
i18n = {
|
i18n.inputMethod = {
|
||||||
inputMethod = {
|
enable = true;
|
||||||
enabled = "fcitx5";
|
type = "fcitx5";
|
||||||
fcitx5 = {
|
fcitx5 = {
|
||||||
addons = with pkgs; [
|
settings.addons = with pkgs; [
|
||||||
fcitx5-mozc
|
fcitx5-mozc
|
||||||
fcitx5-anthy
|
fcitx5-anthy
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,9 @@ in {
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
hardware = {
|
hardware = {
|
||||||
opengl = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
nvidia = mkIf cfg.nvidia.enable {
|
nvidia = mkIf cfg.nvidia.enable {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
Loading…
Reference in a new issue