Update README.md

This commit is contained in:
2026-04-28 15:47:17 +03:00
parent 4aee7480c7
commit 6763181b94
+21 -11
View File
@@ -19,8 +19,16 @@ For each supported system, the flake exports:
Current `default` points to the `t3code-desktop`. Current `default` points to the `t3code-desktop`.
There are also `desktop` and `server` shorthands available for `apps` and `packages`.
## Usage ## Usage
Inspect the flake surface:
```bash
nix flake show --all-systems
```
Build the desktop package: Build the desktop package:
```bash ```bash
@@ -53,24 +61,26 @@ Both packages can be overridden to add AI agent CLIs to the runtime `PATH`:
- `withClaudeCode` adds `github:numtide/llm-agents.nix#claude-code` - `withClaudeCode` adds `github:numtide/llm-agents.nix#claude-code`
- `withOpencode` adds `github:numtide/llm-agents.nix#opencode` - `withOpencode` adds `github:numtide/llm-agents.nix#opencode`
Agent CLIs can be overridden as well using `codexPackage`, `claudeCodePackage` and `opencodePackage` respectively.
These overrides wrap the finished package in a small `postBuild` layer, so changing the agent flags does not rebuild the full T3 Code package. These overrides wrap the finished package in a small `postBuild` layer, so changing the agent flags does not rebuild the full T3 Code package.
In a Nix expression, use the same package override directly: In a Nix expression, use the same package override directly (using `perSystem` from [`github:numtide/blueprint`](https://github.com/numtide/blueprint)):
```nix ```nix
self.packages.${system}.t3code-desktop.override { {perSystem, pkgs, ...}: {
withCodex = true; home.packages = [
withClaudeCode = true; (perSystem.t3code.desktop.override {
withOpencode = true; withCodex = true;
claudeCodePackage = pkgs.claude-code-bin;
withClaudeCode = true;
opencodePackage = perSystem.foobar.my-awesome-opencode-fork;
withOpencode = true;
})
];
} }
``` ```
Inspect the flake surface:
```bash
nix flake show --all-systems
```
## Layout ## Layout
```text ```text