Skip to content

Commit f810aca

Browse files
committed
feat: replace AI CLI by opencode
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
1 parent aaaeca9 commit f810aca

4 files changed

Lines changed: 40 additions & 37 deletions

File tree

home/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ let
1212
allowUnfreePredicate =
1313
pkg:
1414
builtins.elem (lib.getName pkg) [
15-
"claude-code"
1615
"discord"
1716
"google-chrome"
1817
"packer"

home/user/programs/ai.nix

Lines changed: 0 additions & 35 deletions
This file was deleted.

home/user/programs/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{ guiEnabled, ... }:
22
let
33
defaultImports = [
4-
./ai.nix
54
./atuin.nix
65
./delta.nix
76
./git.nix
@@ -11,6 +10,7 @@ let
1110
./k9s.nix
1211
./kubecolor.nix
1312
./kubeswitch.nix
13+
./opencode.nix
1414
./rclone.nix
1515
./shell.nix
1616
./starship.nix

home/user/programs/opencode.nix

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{ pkgs-unstable, ... }:
2+
{
3+
programs.opencode = {
4+
enable = true;
5+
package = pkgs-unstable.opencode;
6+
settings = {
7+
theme = "opencode";
8+
share = "disabled";
9+
autoupdate = false;
10+
permission = {
11+
"*" = "ask";
12+
read = {
13+
"*" = "allow";
14+
"*.env" = "ask";
15+
};
16+
edit = "ask";
17+
glob = "allow";
18+
grep = "allow";
19+
list = "allow";
20+
bash = "ask";
21+
task = "ask";
22+
skill = "ask";
23+
lsp = "allow";
24+
todoread = "allow";
25+
todowrite = "ask";
26+
webfetch = "ask";
27+
websearch = "ask";
28+
codesearch = "ask";
29+
external_directory = "ask";
30+
doom_loop = "ask";
31+
};
32+
plugin = [ "opencode-gemini-auth@latest" ];
33+
enabled_providers = [
34+
"anthropic"
35+
"google"
36+
];
37+
};
38+
};
39+
}

0 commit comments

Comments
 (0)