aboutsummaryrefslogtreecommitdiff
path: root/modules/home/cli/opencode
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home/cli/opencode')
-rw-r--r--modules/home/cli/opencode/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/home/cli/opencode/default.nix b/modules/home/cli/opencode/default.nix
new file mode 100644
index 0000000..48be861
--- /dev/null
+++ b/modules/home/cli/opencode/default.nix
@@ -0,0 +1,26 @@
+{
+ config,
+ lib,
+ ...
+}:
+let
+ cfg = config.nx.cli.opencode;
+ inherit (lib) mkEnableOption mkIf;
+in
+{
+
+ options.nx.cli.opencode = {
+ enable = mkEnableOption "opencode open source ai coding agent";
+ };
+
+ config = mkIf cfg.enable {
+ programs.opencode = {
+ enable = true;
+ settings = {
+ theme = "system";
+ share = "disabled";
+ autoupdate = false;
+ };
+ };
+ };
+}