Skip to content

Commit 4d6c736

Browse files
stackptrclaude
andcommitted
feat(rhizome): add agentsview with launchd pg push
- Install agentsview package - Configure pg push to glyph over Tailscale (passwordless) - Add launchd agent to push sessions every 10 minutes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 72e86f5 commit 4d6c736

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

hosts/Rhizome/home.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{pkgs, ...}: {
2+
home.packages = [pkgs.agentsview];
3+
4+
# Agentsview config for pushing sessions to glyph's PostgreSQL
5+
home.file.".agentsview/config.toml".text = ''
6+
[pg]
7+
url = "postgres://agentsview@glyph:5432/agentsview?sslmode=disable"
8+
machine_name = "rhizome"
9+
'';
10+
11+
# Push agent sessions to glyph every 10 minutes
12+
launchd.agents.agentsview-pg-push = {
13+
enable = true;
14+
config = {
15+
Program = "${pkgs.agentsview}/bin/agentsview";
16+
ProgramArguments = ["${pkgs.agentsview}/bin/agentsview" "pg" "push"];
17+
StartInterval = 600;
18+
StandardOutPath = "/tmp/agentsview-pg-push.log";
19+
StandardErrorPath = "/tmp/agentsview-pg-push.log";
20+
};
21+
};
22+
}

0 commit comments

Comments
 (0)