-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopencode.json
More file actions
86 lines (86 loc) · 2.87 KB
/
opencode.json
File metadata and controls
86 lines (86 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"$schema": "https://opencode.ai/config.json",
"instructions": ["AGENTS.md", "RTK.md", "README.md"],
"formatter": {
"alejandra": {
"command": ["alejandra"],
"extensions": [".nix"]
}
},
"command": {
"test": {
"template": "Run nix flake check to validate all configurations",
"description": "Validate Nix configurations",
"agent": "build"
},
"build": {
"template": "Build all system configurations using task build",
"description": "Build all configurations",
"agent": "build"
},
"fmt": {
"template": "Format all Nix files using alejandra",
"description": "Format Nix files",
"agent": "build"
},
"lint": {
"template": "Run deadnix linter on all Nix files",
"description": "Lint Nix files",
"agent": "build"
},
"quality": {
"template": "Run all code quality checks (format + lint)",
"description": "Run quality checks",
"agent": "build"
},
"switch": {
"template": "Apply system configuration changes using task switch",
"description": "Apply system configuration",
"agent": "build",
"instructions": ["RTK.md"]
}
},
"permission": {
"bash": {
"git push": "ask",
"gh secret": "ask",
"gh api": "ask",
"gh pr ": "ask",
"gh pr merge": "ask",
"gh pr create": "ask",
"gh auth": "ask",
"gh org": "ask",
"gh project": "ask",
"gh release": "ask",
"gh repo": "ask"
}
},
"lsp": {
"nixd": {
"command": ["nixd"],
"extensions": [".nix"],
"initialization": {
"nixd": {
"nixpkgs": {
"expr": "import (builtins.getFlake(toString ./.)).inputs.nixpkgs { }"
},
"formatting": {
"command": ["alejandra"]
},
"options": {
"nixos-zero": {
"expr": "let flake = builtins.getFlake(toString ./.); in flake.nixosConfigurations.zero.options"
},
"darwin-wweaver": {
"expr": "let flake = builtins.getFlake(toString ./.); in flake.darwinConfigurations.wweaver.options"
},
"darwin-megamanx": {
"expr": "let flake = builtins.getFlake(toString ./.); in flake.darwinConfigurations.MegamanX.options"
}
}
}
}
}
},
"share": "manual"
}