mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 00:58:12 +09:00
25 lines
431 B
Nix
25 lines
431 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.applications.fcitx5.homeManager;
|
|
in
|
|
{
|
|
options.my.applications.fcitx5.homeManager = {
|
|
enable = lib.mkEnableOption "fcitx5 home-manager configuration";
|
|
};
|
|
|
|
config.home-manager.sharedModules = [
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
home.file.".config/fcitx5/config" = {
|
|
recursive = true;
|
|
source = ./config;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
}
|