feat(mars): honcho-console, tailnet-only web UI for luna's Honcho
Own repo (darman/honcho-console) as a flake input; its module runs on mars with a SELECT-only grant on Honcho's database, at http://mars.orbit.sol:8095 with the port closed on the LAN. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Generated
+21
@@ -156,6 +156,26 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"honcho-console": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1790973352,
|
||||||
|
"narHash": "sha256-a6iDp4XNE6pgCekHDXON05ucnd4CwsSRrVasJgaKKZY=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "d3673561d18c8684bbda87e38e27aee4c3b51ade",
|
||||||
|
"revCount": 1,
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://gitea@git.mgaction.town:2222/darman/honcho-console.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://gitea@git.mgaction.town:2222/darman/honcho-console.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hypr-chrome": {
|
"hypr-chrome": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -505,6 +525,7 @@
|
|||||||
"authentik-nix": "authentik-nix",
|
"authentik-nix": "authentik-nix",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"honcho-console": "honcho-console",
|
||||||
"hypr-chrome": "hypr-chrome",
|
"hypr-chrome": "hypr-chrome",
|
||||||
"livesync-bridge": "livesync-bridge",
|
"livesync-bridge": "livesync-bridge",
|
||||||
"mediamanager-nix": "mediamanager-nix",
|
"mediamanager-nix": "mediamanager-nix",
|
||||||
|
|||||||
@@ -61,6 +61,12 @@
|
|||||||
url = "git+ssh://gitea@git.mgaction.town:2222/darman/TOME.git";
|
url = "git+ssh://gitea@git.mgaction.town:2222/darman/TOME.git";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
# Web console for luna's Honcho (hosts/mars/honcho-console.nix); own repo
|
||||||
|
# on our gitea, ships its package + NixOS module.
|
||||||
|
honcho-console = {
|
||||||
|
url = "git+ssh://gitea@git.mgaction.town:2222/darman/honcho-console.git";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, disko, nixos-anywhere, sops-nix, nixos-images, home-manager, mediamanager-nix, authentik-nix, ... }@inputs:
|
outputs = { self, nixpkgs, disko, nixos-anywhere, sops-nix, nixos-images, home-manager, mediamanager-nix, authentik-nix, ... }@inputs:
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
./secrets.nix # sops-nix: samba/tailscale/hermes secrets
|
./secrets.nix # sops-nix: samba/tailscale/hermes secrets
|
||||||
./hermes-agent.nix
|
./hermes-agent.nix
|
||||||
./honcho.nix # luna's memory server (Postgres + Ollama embeddings)
|
./honcho.nix # luna's memory server (Postgres + Ollama embeddings)
|
||||||
|
./honcho-console.nix # web console for it, tailnet-only on :8095
|
||||||
./livesync-bridge.nix
|
./livesync-bridge.nix
|
||||||
./luna-sites.nix # luna's LAN web apps: http://mars.sol/<name>/
|
./luna-sites.nix # luna's LAN web apps: http://mars.sol/<name>/
|
||||||
../../common.nix # shared base: user / ssh / nix / firewall
|
../../common.nix # shared base: user / ssh / nix / firewall
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
# Web console for luna's Honcho (honcho.nix). Bound on all interfaces but
|
||||||
|
# its port stays closed in the firewall, so like Hermes' dashboard it is
|
||||||
|
# reachable over tailscale0 only: http://mars.orbit.sol:8095. It can rewrite
|
||||||
|
# luna's memory, so it stays off the LAN and off neptun.
|
||||||
|
{
|
||||||
|
imports = [ inputs.honcho-console.nixosModules.default ];
|
||||||
|
|
||||||
|
services.honcho-console = {
|
||||||
|
enable = true;
|
||||||
|
listen = "0.0.0.0:8095";
|
||||||
|
# Unlocks the UI toggle only; every start is still read-only.
|
||||||
|
allowWrites = true;
|
||||||
|
cardSnapshotInterval = "15m";
|
||||||
|
representationSnapshotInterval = "24h";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Honcho's tables must exist before the grant covers them.
|
||||||
|
systemd.services.honcho-console-grants.after = [ "podman-honcho-api.service" ];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user