Update README
This commit is contained in:
42
README.md
42
README.md
@@ -26,37 +26,25 @@ The `/nix/store` is mounted as read-only at the system level. This ensures your
|
||||
|
||||
### Example: Adding a local file and remote extensions
|
||||
|
||||
```nix
|
||||
{ config, pkgs, ... }:
|
||||
## Pi Agent Configuration
|
||||
|
||||
To use the **System Architect** skills and **Steel Browser** extension with this project, ensure your `.pi/settings.json` is configured as follows:
|
||||
|
||||
```json
|
||||
{
|
||||
home.file = {
|
||||
# 1. Manual/Local File Management
|
||||
".pi/agents/settings.json".text = ''
|
||||
"packages": [
|
||||
{
|
||||
"defaultProvider": "openrouter",
|
||||
"extensionsPath": "~/.pi/extensions"
|
||||
"source": "git:https://audasmedia.com.au",
|
||||
"extensions": [
|
||||
"extensions/steel-browser/index.ts"
|
||||
],
|
||||
"skills": [
|
||||
"skills/system-architect"
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
# 2. Adding an entire folder (e.g., extensions) from Gitea
|
||||
".pi/extensions/my-tool".source = pkgs.fetchgit {
|
||||
url = "https://your-gitea-instance.com";
|
||||
rev = "main"; # or a specific commit hash
|
||||
sha256 = "0000000000000000000000000000000000000000000000000000"; # Run 'nix-prefetch-git' to get this
|
||||
};
|
||||
|
||||
# 3. Recursive directory from your local config folder
|
||||
# This maps everything inside your local 'agents' folder to ~/.pi/agents/
|
||||
".pi/agents" = {
|
||||
source = ./agents;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Tips for Extensions
|
||||
* **Git Tracking**: If you use `git add .` in your config directory, Nix will track your local changes.
|
||||
* **Fetchers**: Use [pkgs.fetchgit](https://nixos.org) for Gitea repos to ensure they are version-controlled and reproducible.
|
||||
* **Permissions**: If an extension needs to be executable, add `executable = true;` to the `home.file` block.
|
||||
### Usage
|
||||
When you launch `pi` in this directory, it will automatically pull these assets from the **Audas Media** Gitea instance and activate the specialized toolset.
|
||||
|
||||
Reference in New Issue
Block a user