Commit 227510e

HPCesia <me@hpcesia.com>
2025-10-01 15:09:51
refactor: migrate opencode
1 parent 7aeca28
Changed files (3)
home/base/tui/ai/default.nix
@@ -1,3 +0,0 @@
-{mylib, ...}: {
-  imports = mylib.scanModules ./.;
-}
home/base/tui/ai/opencode.nix
@@ -1,23 +0,0 @@
-{...}: {
-  programs.opencode = {
-    enable = true;
-    settings = {
-      theme = "catppuccin";
-      permission = {
-        edit = "ask";
-        webfetch = "ask";
-        bash = {
-          "ls" = "allow";
-          "cd" = "allow";
-          "pwd" = "allow";
-        };
-      };
-      mcp = {
-        context7 = {
-          type = "local";
-          command = ["bun" "-y" "@upstash/context7-mcp"];
-        };
-      };
-    };
-  };
-}
modules/dev/opencode.nix
@@ -0,0 +1,25 @@
+{
+  flake.modules.homeManager.dev = _: {
+    programs.opencode = {
+      enable = true;
+      settings = {
+        theme = "catppuccin";
+        permission = {
+          edit = "ask";
+          webfetch = "ask";
+          bash = {
+            "ls" = "allow";
+            "cd" = "allow";
+            "pwd" = "allow";
+          };
+        };
+        mcp = {
+          context7 = {
+            type = "local";
+            command = ["bun" "-y" "@upstash/context7-mcp"];
+          };
+        };
+      };
+    };
+  };
+}