refactor: modularize 'ai-tools module'

This commit is contained in:
2026-04-10 19:25:36 +02:00
parent de7a7866e9
commit 9d54fc70b0
4 changed files with 130 additions and 113 deletions

View File

@@ -0,0 +1,23 @@
{
lib,
config,
pkgs,
...
}:
let
cfg = config.ai-tools.opencode;
in
{
options.ai-tools.opencode = {
enable = lib.mkEnableOption "opencode";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
opencode
];
home.file.".config/opencode/opencode.json".text = builtins.toJSON {
plugin = [ "@mohak34/opencode-notifier@latest" ];
};
};
}