This commit is contained in:
Sridhar Ratnakumar 2026-07-02 17:40:14 -04:00
parent 4a581cca33
commit fa89a74721
4 changed files with 9 additions and 43 deletions

View file

@ -17,7 +17,6 @@ in
"${homeMod}/services/obsidian.nix"
"${homeMod}/services/kolu.nix"
"${homeMod}/services/pulam-web.nix"
"${homeMod}/services/drishti"
# Remote builders

13
flake.lock generated
View file

@ -283,11 +283,11 @@
"bun2nix": "bun2nix"
},
"locked": {
"lastModified": 1782572531,
"narHash": "sha256-uSBaORR9mHSrqkKn3wnlU/de2fT/sckuzqhw0ggNqQY=",
"lastModified": 1782927932,
"narHash": "sha256-OjOH2WguMohk/NAYdnS/rj0Ag+0G/k9XW5HsvcmErUE=",
"owner": "srid",
"repo": "drishti",
"rev": "7d70750c385be2515731c9b71570d6f4fd8ac103",
"rev": "f692afb245a00a28f5b8bac2fa2462a58db9388a",
"type": "github"
},
"original": {
@ -844,15 +844,16 @@
},
"kolu": {
"locked": {
"lastModified": 1782571859,
"narHash": "sha256-UbBS4ikqRspKsjkQVgrDjLkrMt2DsN3P9jLM2FY1/Gs=",
"lastModified": 1783019894,
"narHash": "sha256-0SsUGZl+0tYSDVgdNFX80fDGzZEcEr6dfDYnC6tzXqU=",
"owner": "juspay",
"repo": "kolu",
"rev": "d9e4b77ccf4ccdebe2bce1f288ac9a62eb9bfd13",
"rev": "da15c87a740b9cc512438131c968c21bfb0e8839",
"type": "github"
},
"original": {
"owner": "juspay",
"ref": "W1",
"repo": "kolu",
"type": "github"
}

View file

@ -34,8 +34,8 @@
jumphost-nix.url = "github:srid/jumphost-nix";
jumphost-nix.flake = false;
# Pinned to PR #1591 (fix/overflow-recovery-loop): https://github.com/juspay/kolu/pull/1591
kolu.url = "github:juspay/kolu/fix/overflow-recovery-loop";
# Pinned to PR #1652 (W1): https://github.com/juspay/kolu/pull/1652
kolu.url = "github:juspay/kolu/W1";
# drishti remote host monitor (home-manager module)
drishti.url = "github:srid/drishti";

View file

@ -1,34 +0,0 @@
{ flake, config, pkgs, ... }:
let
inherit (flake) inputs;
# Reuse the existing kolu flake input (pinned in flake.nix) — don't refetch.
pulam-web = inputs.kolu.packages.${pkgs.stdenv.hostPlatform.system}.pulam-web;
in
{
# pulam-web from the kolu flake input, run as a launchd agent (macOS).
# Equivalent to: PULAM_WEB_HOSTS=pureintent <kolu>#pulam-web — but the package
# is referenced directly (no runtime `nix run`). The host list is machine
# specific, so the consuming config sets the env below.
launchd.agents.pulam-web = {
enable = true;
config = {
ProgramArguments = [ "${pulam-web}/bin/pulam-web" ];
EnvironmentVariables = {
# "localhost" (not "local") is the in-process host — only
# localhost/127.0.0.1/::1 skip ssh; "local" would be dialed as a remote.
PULAM_WEB_HOSTS = "pureintent,localhost";
# zest itself runs kolu, which means several kaval daemons — pulam can't
# guess which to read and would render "no terminals", so we name the
# kolu-server socket explicitly. On macOS it lives at
# /tmp/kaval-<port>-<uid>/pty-host.sock; port 7692 (services.kolu), uid
# 501. See the pulam-web README, "Pointing at a host that runs kolu?".
PULAM_WEB_KAVAL_SOCKETS = "localhost=/tmp/kaval-7692-501/pty-host.sock";
};
KeepAlive = true;
RunAtLoad = true;
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/pulam-web.log";
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/pulam-web.err";
};
};
}