feat: pi-agent wrapper
This commit is contained in:
@@ -157,6 +157,32 @@ m3ta.mem0 = {
|
||||
|
||||
**Documentation**: [mem0 Module](../modules/nixos/mem0.md)
|
||||
|
||||
#### `m3ta.pi-agent`
|
||||
|
||||
Isolated Pi execution with a dedicated system user (`pi-agent` by default),
|
||||
a hardened runtime, and a host-side `pi` wrapper command.
|
||||
|
||||
```nix
|
||||
m3ta.pi-agent = {
|
||||
enable = true;
|
||||
stateDir = "/var/lib/pi-agent";
|
||||
|
||||
hostUsers = {
|
||||
m3tam3re = {
|
||||
projectRoots = ["~/p" "~/work/private"];
|
||||
configPath = ".pi/agent"; # optional
|
||||
};
|
||||
};
|
||||
|
||||
settings.defaultModel = "anthropic/claude-sonnet-4";
|
||||
environment.PI_TELEMETRY = "0";
|
||||
wrapper.commandName = "pi";
|
||||
wrapper.hideDirectBinary = true;
|
||||
};
|
||||
```
|
||||
|
||||
**Documentation**: [Pi Agent Isolation Guide](./pi-agent-isolation.md)
|
||||
|
||||
### Home Manager Modules
|
||||
|
||||
#### `m3ta.ports`
|
||||
@@ -255,6 +281,7 @@ Pi agent deployment from canonical TOML definitions.
|
||||
coding.agents.pi = {
|
||||
enable = true;
|
||||
agentsInput = inputs.agents;
|
||||
path = ".pi/agent"; # default; can be changed
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user