Commit graph

520 commits

Author SHA1 Message Date
Sridhar Ratnakumar
cc95849e4e incus-pet: per-app incus container CLI ("pet PaaS"); drop webapps/
Phase 1 of the incus-pet design. Adds the deployment infrastructure
under modules/nixos/linux/incus/ — a CLI, a container-essentials NixOS
module, a SKILL.md for agent-driven adoption — and deletes the webapps/
tree (nspawn-based, weaker isolation defaults, no live consumers).

Pairs with srid/anywhen#15 (nixosModules.incus on the anywhen flake)
for end-to-end deployment of anywhen as an incus container.

Surface added:

- modules/nixos/linux/incus/container.nix    container essentials
  (sshd, hostname, flakes, firewall, base packages); imported by the
  marshaling flake incus-pet generates per app
- modules/nixos/linux/incus/incus-pet/       CLI tree:
    default.nix   writeShellApplication; subcommands deploy/list/rm
    SKILL.md      3-branch agent recipe (deploy / wrapper / add
                  contract upstream)
    README.md     human docs with the full network-model section
- modules/flake-parts/incus-pet.nix          exposes packages.incus-pet

Surface removed:

- modules/nixos/linux/anywhen.nix            anywhen runs as a
  container now, not as a host-installed service
- configurations/nixos/pureintent            drops the anywhen import
  and the services.anywhen.host wiring
- webapps/                                   deleted entirely

Port convention: every containerized service binds 8080 inside its
own netns. The host-side <listen-ip>:<host-port> is unique per app,
chosen at first deploy via --port + --listen (or INCUS_PET_LISTEN
env), and recorded in container metadata so re-deploys are flagless.

Run:
  nix run .#incus-pet -- deploy github:srid/anywhen \
    --port 7700 --listen 100.122.32.106

See modules/nixos/linux/incus/incus-pet/README.md for the operator
flow and the network model in full.
2026-05-23 13:53:55 -04:00
Sridhar Ratnakumar
db61baee31 anywheren stuff 2026-05-23 12:19:14 -04:00
Sridhar Ratnakumar
5a0b2b4207 kolu 2026-05-20 07:46:30 -04:00
Sridhar Ratnakumar
a28ba07abb
Optimize pureintent eval time (Ralph) (#117)
* docs: Ralph report scaffolding + pureintent eval baseline (10.87s)

* cycle-1: drop nixvim — pureintent eval 10.87s → 6.98s (-36%)

nixvim's home-manager module system is by far the dominant cost of
evaluating `nixosConfigurations.pureintent`: a profile of selective
imports puts it at 3.97s of the 10.87s baseline (~36%).

Replace it with a minimal `programs.neovim.enable = true` configuration.
The runtime behaviour of `nvim` changes (no plugins, no LSP, no
mapleader/telescope/treesitter/etc.) — accepted by the user.

Measured on srid-nc (nixos, 6.12.85 kernel), 7 warm-cache runs with
`--option eval-cache false`:

  baseline: 10.85 10.86 10.86 10.87 10.87 10.88 10.91 -> median 10.87s
  cycle-1:  6.94  6.96  6.98  6.98  7.02  7.02  7.73 -> median 6.98s

Other configurations still evaluate:
  - nixosConfigurations.naiveintent
  - darwinConfigurations.infinitude-macos
  - homeConfigurations."srid@zest"

Removes flake input `nixvim` (+ its `flake-parts`, `nixpkgs`, `systems`
sub-inputs from the lock).

* docs: wrap up Ralph report (10.87s -> 6.99s = -35.7%)

7 dead-ends documented so they don't have to be re-tried. Key
finding: after dropping nixvim (cycle 1), the eval floor is
home-manager's per-entry submodule materialisation
(systemd.user.services / programs.ssh.matchBlocks), not the
option-declaration count of any wrapper module. Inlining
jumphost-nix or vira moves the cost; it does not eliminate it.
2026-05-15 13:32:03 -04:00
Sridhar Ratnakumar
9079910f7c kolu 2026-05-15 10:25:46 -04:00
Sridhar Ratnakumar
43b9f34635 pu 2026-05-14 21:35:55 -04:00
Sridhar Ratnakumar
fa3cf0b350 up 2026-05-13 15:00:16 -04:00
Sridhar Ratnakumar
dfaed502aa kolu 2026-05-12 19:13:46 -04:00
Sridhar Ratnakumar
af2404e6e5 kolu 2026-05-12 17:59:28 -04:00
Sridhar Ratnakumar
a3bd52468a Install zmx on pureintent 2026-04-23 12:24:11 -04:00
Sridhar Ratnakumar
6130fcef8d Update kolu back to master 2026-04-23 12:16:30 -04:00
Sridhar Ratnakumar
a9c844e704 kolu: Update 2026-04-19 11:28:53 -04:00
Sridhar Ratnakumar
4805edf56b Update input 2026-04-19 09:46:07 -04:00
Sridhar Ratnakumar
5661ec53d5 unne. 2026-04-14 21:47:35 -04:00
Sridhar Ratnakumar
7de488b235 unnerf opus 2026-04-13 18:24:54 -04:00
Sridhar Ratnakumar
d9b6285774 back to mast 2026-04-10 16:14:18 -04:00
Sridhar Ratnakumar
19e85a553e Update 2026-04-09 17:45:27 -04:00
Sridhar Ratnakumar
2e1e36520c remove 2026-04-04 13:47:23 -04:00
Sridhar Ratnakumar
988afd2ad9 up 2026-03-27 18:07:09 -04:00
Sridhar Ratnakumar
219f17d8ba
Add kolu home service for pureintent (#111)
* Add kolu home service for pureintent

Depends on https://github.com/juspay/kolu/pull/21

* Update kolu input to main (PR merged)
2026-03-21 20:17:57 -04:00
Sridhar Ratnakumar
7eded386bb update AI 2026-03-19 07:55:17 -04:00
Sridhar Ratnakumar
e5fa70c254 opencode: switch to anthropic opus 4.6 max, drop juspay provider 2026-03-18 21:13:36 -04:00
Sridhar Ratnakumar
dfbcc3663c Update some stuff 2026-03-16 18:27:14 -04:00
Sridhar Ratnakumar
11bde0d900 Restore skills 2026-03-16 17:39:42 -04:00
Sridhar Ratnakumar
0537ef99b9
Migrate AI config to nixos-config, use nix-agent-wire (#107)
- Move AI config from nix-agent-wire/srid to ./AI
- Update flake input: srid/AI -> srid/nix-agent-wire
- Update home modules to use local AI folder via flake.self.outPath
2026-03-16 16:58:08 -04:00
Sridhar Ratnakumar
f61aa49c4d Remove submodules entirely 2026-03-14 09:22:23 -04:00
Sridhar Ratnakumar
f5f8c89006 opencode: use AI flake input with home-manager module
- Remove vendor/AI git submodule, use github:srid/AI flake input
- Import AI's opencode home-manager module for autoWire
- Set OPENCODE_DISABLE_CLAUDE_CODE=1
2026-03-13 20:46:29 -04:00
Sridhar Ratnakumar
667543ceca
opencode: use upstream juspay/oc home module (#105) 2026-03-12 18:18:51 -04:00
Sridhar Ratnakumar
cd4805d5dd
Enable opencode web service on pureintent (#104)
- Add opencode/web.nix module for web service configuration
- Bind to Tailscale IP (100.122.32.106) on port 4096
- Pass JUSPAY_API_KEY from agenix secret to service
- Update flake inputs: nixpkgs/unstable, nix-darwin/master, home-manager/master
2026-03-11 22:58:45 -04:00
Sridhar Ratnakumar
635ed169f7 Use https://github.com/srid/landrun-nix/pull/18 2026-03-06 09:21:33 -05:00
Sridhar Ratnakumar
5c56981508 vira: github app mvp 2026-03-02 10:26:52 -05:00
Sridhar Ratnakumar
3ac0541208 add a package 2026-02-28 07:12:44 -05:00
Sridhar Ratnakumar
1bf5049ebb drop nu 2026-02-14 19:33:12 -05:00
Sridhar Ratnakumar
d04fef9603 vira: Update 2026-01-26 09:27:34 -05:00
Sridhar Ratnakumar
4919c45017 Update inputs 2025-12-31 11:14:12 -05:00
Sridhar Ratnakumar
bcfd7d5e04 stuff 2025-12-18 21:07:32 -05:00
Sridhar Ratnakumar
96453e837a 25.11 2025-12-02 11:04:11 -05:00
Sridhar Ratnakumar
39fdc1f887 Fix some warnings 2025-11-29 14:53:18 -05:00
Sridhar Ratnakumar
9de6a1977f Let nixpkgs advance 2025-11-29 14:48:37 -05:00
Sridhar Ratnakumar
b44026f5a1 vira: Update 2025-11-28 14:30:06 -05:00
Sridhar Ratnakumar
e9bf3a7018 Update stuff 2025-11-27 15:04:44 -05:00
Sridhar Ratnakumar
c7f82dce59
LiteLLM + Claude Code configuration (#101) 2025-11-25 10:38:19 -05:00
Sridhar Ratnakumar
c1c4a5a45c AI: as submodule 2025-11-20 15:05:34 -05:00
Sridhar Ratnakumar
634081939b use AI as submodule 2025-11-20 14:40:14 -05:00
Sridhar Ratnakumar
16d7918892 upstream 2025-11-20 14:29:17 -05:00
Sridhar Ratnakumar
c4002dbda5 obsidian stuff 2025-11-18 10:44:05 -05:00
Sridhar Ratnakumar
557e220abb Vira 2025-11-15 15:03:48 -05:00
Sridhar Ratnakumar
ec36ec3517 nix: Update primary inputs 2025-11-12 15:05:16 -05:00
Sridhar Ratnakumar
a6f854db32 Upstream my claude-code config 2025-11-10 20:15:11 -05:00
Sridhar Ratnakumar
8f49564904 vira/landrun: Update 2025-11-10 14:39:24 -05:00