24 lines
413 B
Nix
24 lines
413 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.modules.opencode;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
programs.opencode.enable = true;
|
|
|
|
home.packages = mkIf cfg.notify [ pkgs.libnotify ];
|
|
|
|
xdg.configFile."opencode/plugin/notify.ts" = mkIf cfg.notify {
|
|
source = ./plugin/notify.ts;
|
|
};
|
|
|
|
home.file.".agents/skills/caveman/SKILL.md".source = ./skills/caveman/SKILL.md;
|
|
};
|
|
}
|