Enable the OpenCode service on both desktop and laptop hosts. Import the opencode module into the home configuration and provide settings, plugins, extra packages, and skill definitions for full functionality.
22 lines
357 B
Nix
22 lines
357 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options.codex.enable = lib.mkEnableOption "Codex";
|
|
|
|
config.programs.codex = lib.mkIf config.codex.enable {
|
|
enable = true;
|
|
package = pkgs.codex;
|
|
mutableSettings = true;
|
|
# skills = {
|
|
# beads = "${pkgs.beads.src}/plugins/beads/skills/beads";
|
|
# };
|
|
};
|
|
|
|
imports = [
|
|
./plugins.nix
|
|
];
|
|
}
|