convert graphical folder to modules

This commit is contained in:
Kopatz
2024-04-16 21:43:24 +02:00
parent 9d79d01c5e
commit 409d684b17
17 changed files with 375 additions and 236 deletions

View File

@@ -1,5 +1,15 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.kop.graphical.ime;
in
{
i18n.inputMethod.enabled = "fcitx5";
i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ];
options.kop.graphical.ime = {
enable = mkEnableOption "Enables ime";
};
config = mkIf cfg.enable {
i18n.inputMethod.enabled = "fcitx5";
i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ];
};
}