Commit Graph
80 Commits
Author SHA1 Message Date
jackos1998andClaude Opus 5.5 08cb5828e8 middleman: Add a Pocket ID client for mailcow
Build llm-agents / build (pull_request) Skipped
CI / Check, build and cache nixfiles (push) Successful in 28m43s
Update docs / update (push) Failing after 1m25s
mailcow's Generic-OIDC identity provider can sign mailboxes in to
its UI and SOGo with Pocket ID. mailcow isn't NixOS, so its side is
set up by hand in the admin UI with the secret from
`mailcow/oidc-secret.txt`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:42:21 +00:00
jackos1998andClaude Opus 5.5 712fabcb62 git: Sign in to Gitea with Pocket ID
Build llm-agents / build (pull_request) Skipped
Update docs / update (push) Failing after 1m10s
CI / Check, build and cache nixfiles (push) Successful in 29m1s
Add an `id.nul.ie` OpenID Connect login source to Gitea, kept up to
date from `preStart` since Gitea stores login sources in its database.
Its client is declared on `middleman` with the secret shared by both.
Registration stays disabled, so a Pocket ID sign-in links to an
existing account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:35:02 +00:00
jackos1998andClaude Opus 5.5 eeb1f2d15c middleman: Replace nginx-sso with Pocket ID SSO
CI / Check, build and cache nixfiles (push) Canceled after 25m17s
Update docs / update (push) Failing after 1m53s
Gate the vhosts without their own sign-in with oauth2-proxy, which
signs in with Pocket ID and allows members of the `admins` group.
Each gated vhost serves its own `/oauth2/` endpoints with a host-only
session cookie, so other `.nul.ie` sites never receive it. Sessions
last a week, and a refresh token lets oauth2-proxy check back with
Pocket ID every hour without a passkey.

Add `my.pocket-id`, which declares Pocket ID groups and OIDC clients
in Nix; `pocket-id-sync` applies them through the API with a static
API key that nginx keeps from outside requests. This lets apps move
to Pocket ID with their client defined next to them, with secrets
from `slop secret generate`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:15:06 +00:00
jackos1998andClaude Opus 5.5 6996096765 nixos: Use BBR for TCP sent from colony and home
CI / Check, build and cache nixfiles (push) Successful in 1h17m9s
Update docs / update (push) Failing after 1m10s
`estuary`'s port in ColoClue DC6 loses bursts of packets whenever the
members switch floods other members' traffic to it. CUBIC treats each
burst as congestion and takes 20-30 s to recover, longer than the gap
between floods. BBR keeps going. Between `estuary` and `river`, it
averaged 899 Mbit/s against CUBIC's 258 Mbit/s downloading from
colony, and 185 against 149 Mbit/s uploading to it.

Add a `my.network.bbr` option. Congestion control is chosen by the
sender, so enable it on the colony boxes that send data off-box
(`colony`, `shill` and its `middleman` proxy, `git`, `whale2`), and
for uploads on `castle` and the home routers. Forwarded traffic isn't
affected, so the routers only gain for their own connections and
`estuary` is left alone. BBR paces itself, so the default qdisc
stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:11:53 +00:00
jackos1998andClaude Opus 5.5 2519c3c86c nixos/palace: Run slop-broker for agents
`slop-cannon`'s agents reach the broker on `palace` through a vsock
device, under an `agent` policy: box queries run without asking,
`slop ssh` asks (offering 5 min and 1 h leases), and so do deploys.
The deploy key moves to `palace` as an age secret for the broker, so
the VM never holds it, and `AGENTS.md` points agents there at `slop`.

`palace` runs the builder itself, as `slop-broker-build`, reached over
SSH like a separate box and fetching `dev/nixfiles` with a read-only
deploy key, so `slop-cannon` shrinks to 24 GiB. `slop build` pushes
into Harmonia's store on `object` with a key of the broker's own,
which can only speak the store protocol and add GC roots there.
Agents' use of the builder asks, unless the commit is already on
`master`. Builds run agent-written Nix, so they only reach the
Internet, like `lan-untrusted`, and `nix-daemon` is limited so they
can't starve the VMs.

The approvals web app listens on `palace` for `middleman` only, the
one client the firewall lets in, which publishes it at
`approve.slop.nul.ie`. Approvers sign in with Pocket ID, and deploys
to the routers need a fresh passkey.

The broker's SSH targets are the deploy-rs nodes on `master`, which
the builder reads there, so agents can't add or redirect one.

With the broker gating what needs credentials, `slop-cannon`'s agents
are permissive by default: Claude bypasses permission prompts and
Codex runs without approvals or its sandbox, with matching Paseo
profiles. The deny rules for raw `deploy` and `ssh-machine` stay as
steers towards `slop`; the ones for `.keys/` go, since the VM's
checkout only has the committed public keys there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:45:27 +00:00
jackos1998andClaude Opus 5.5 75f6c1a064 nixos/middleman: Add Pocket ID at id.nul.ie
Pocket ID is a passkey-only OpenID Connect provider. It will sign in
to the slop-broker approvals web app, and later replace nginx-sso's
Google sign-in. Creating the first admin is restricted to internal
networks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:45:27 +00:00
jackos1998andClaude Opus 5.5 1622d9dda9 nixos/middleman: Move Paseo web app to slop.nul.ie
The public certificate also gains `*.slop.nul.ie` for agent dev
server previews.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:45:27 +00:00
jackos1998andClaude Opus 5.5 65221ee403 middleman: Set nginx workers through the module
The nginx module now writes `worker_processes` itself, so the copy in
`appendConfig` duplicated it and nginx failed its config test. Keep
`auto` explicit through `services.nginx.workerProcesses`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:11:44 +00:00
jackos1998andClaude Opus 5.5 b0a7f3cd89 nixos/middleman: Serve Paseo web app ourselves
Serve the web app from the Paseo package on `paseo.nul.ie` and point
the daemon's pairing links there, so browsers no longer load Paseo's
hosted app. It connects through our relay, so the daemon stays on
loopback.

Move the patched Paseo package into the shared overlay so `middleman`
and `slop-cannon` use the same build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 00:39:48 +00:00
jackos1998andClaude Opus 5.5 5af71ea231 nixos/middleman: Add self-hosted Paseo relay
Package paseo-relay and add a small `my.paseo-relay` module running it
as a single node without Erlang distribution. Publish it on
`paseo-relay.nul.ie` so Paseo daemons and the app can use our own
relay instead of the hosted one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:48:19 +00:00
jackos1998 5171a10079 nixpkgs: Refresh channels and inputs
CI / Check, build and cache nixfiles (push) Failing after 59m32s
Update docs / update (push) Failing after 1m12s
Rebase the fork branches and refresh nixpkgs, home-manager, and the
approved ancillary inputs. Update kernel and release metadata, adapt
removed package and Home Assistant options, and keep Determinate Nix
on its tested nixpkgs revision to avoid duplicate Boost patches.

Retire Sharry and its public endpoint because copyparty replaces it.
Document the GitHub mirror gate and require real devshell and system
builds in the upgrade validation workflow.
2026-08-24 00:10:18 +01:00
jackos1998 93529c578b "Release" 26.06 Irritating
CI / Check, build and cache nixfiles (push) Successful in 2h20m51s
2026-06-13 16:00:18 +01:00
jackos1998 c9c788e261 nixos/estuary: Add john-valorant
CI / Check, build and cache nixfiles (push) Failing after 6m15s
2026-03-01 22:57:03 +00:00
jackos1998 25758bae08 nixos/middleman: SNAT IPv6 to assigned address
CI / Check, build and cache nixfiles (push) Successful in 2h38m2s
2025-10-01 11:10:41 +01:00
jackos1998 adaf8b6a83 nixos/jackflix: Add copyparty 2025-09-08 23:28:31 +01:00
jackos1998 12c5ca126d nixos/middleman: kinkcraft Bluemap
CI / Check, build and cache nixfiles (push) Failing after 30m2s
2025-06-07 23:28:20 +01:00
jackos1998 fc2fa0666e nixos/middleman: Increase worker_processes
CI / Check, build and cache nixfiles (push) Failing after 5m10s
2025-03-28 16:42:54 +00:00
jackos1998 adfcf2f848 nixos/home/hass: Initial Home Assistant setup
CI / Check, build and cache nixfiles (push) Has been cancelled
2025-03-09 22:59:59 +00:00
jackos1998 d1eb9cc981 nixos/toot: Add BlueSky PDS
CI / Check, build and cache nixfiles (push) Failing after 3m4s
2025-01-31 14:54:40 +00:00
jackos1998 f3ac3cd67f nixos/middleman: Add pubkey and HTTP access to p.nul.ie
CI / Check, build and cache nixfiles (push) Successful in 51m34s
2025-01-16 15:20:57 +00:00
jackos1998 4e2c2f92f0 nixos/middleman: Remove config for Matrix sliding sync proxy
CI / Check, build and cache Nix flake (push) Failing after 6m29s
2024-11-26 22:15:53 +00:00
jackos1998 8e9b750ac8 nixos: Set up remote printing
CI / Check, build and cache Nix flake (push) Successful in 27m42s
2024-08-20 10:36:21 +01:00
jackos1998 e5d5847b89 nixos/middleman: Disable zstd in nginx for now
CI / Check, build and cache Nix flake (push) Successful in 25m3s
2024-07-20 22:41:01 +01:00
jackos1998 69216c6b4c Use harmonia instead of attic for binary cache
CI / Check, build and cache Nix flake (push) Successful in 2h1m7s
2024-07-20 19:04:51 +01:00
jackos1998 1ea172e690 nixos/vaultwarden: Use non-privileged port
CI / Check, build and cache Nix flake (push) Successful in 18m41s
2024-07-19 18:06:14 +01:00
jackos1998 bc4e75a6a5 nixos/middleman: Fix Element config.json
CI / Check, build and cache Nix flake (push) Successful in 17m37s
2024-07-05 16:30:34 +01:00
jackos1998 c6d5705097 nixos/jackflix: Add PhotoPrism
CI / Check, build and cache Nix flake (push) Successful in 34m59s
2024-05-06 00:57:52 +01:00
jackos1998 44e87aa387 Add wastebin
CI / Check, build and cache Nix flake (push) Successful in 27m3s
2024-01-10 15:21:40 +00:00
jackos1998 f90deabb50 nixos/whale2: Update Simpcraft to 0.2.0
CI / Check, build and cache Nix flake (push) Successful in 25m49s
2024-01-10 01:10:13 +00:00
jackos1998 aad8adf5da nixos/middleman: Add hack for working Gitea Docker image pull
CI / Check, build and cache Nix flake (push) Successful in 26m52s
2024-01-09 18:50:11 +00:00
jackos1998 205a948486 nixos/middleman: Fix HedgeDoc websockets 2024-01-09 17:35:34 +00:00
jackos1998 1a29a7d589 nixos/simpcraft: Staging server running
CI / Check, build and cache Nix flake (push) Successful in 26m57s
2024-01-09 00:22:17 +00:00
jackos1998 ca6fe534dc nixos/git: Use separate nginx 2024-01-08 23:31:06 +00:00
jackos1998 e277cce3bc nixos/object: Add HedgeDoc
CI / Check, build and cache Nix flake (push) Has been cancelled
2024-01-08 21:40:20 +00:00
jackos1998 c9ce57e2c5 nixos/middleman: Add public directory
CI / Check, build and cache Nix flake (push) Successful in 24m53s
2024-01-07 03:40:33 +00:00
jackos1998 a2b146e8ba nixos: Add librespeed
CI / Check, build and cache Nix flake (push) Successful in 22m56s
2024-01-03 01:07:12 +00:00
jackos1998 7a4372dfe7 nixos/whale2: Add Minecraft server
CI / Check, build and cache Nix flake (push) Successful in 25m30s
2024-01-01 16:28:04 +00:00
jackos1998 d0b155d786 nixos/middleman: Wait for psql before starting nginx 2023-12-20 18:38:22 +00:00
jackos1998 b537524e5a nixos/britway: Add headscale 2023-12-19 23:40:54 +00:00
jackos1998 88b6e00f93 nixos: Add Gitea VM 2023-12-09 15:22:01 +00:00
jackos1998 a1778e0f1e Upgrade nixpkgs and NixOS stable to 23.11
CI / Check, build and cache Nix flake (push) Successful in 26m58s
2023-12-03 15:06:11 +00:00
jackos1998 241abd02ac Full CI 2023-11-17 20:25:33 +00:00
jackos1998 36cd77c697 nixos/object: Initial working atticd cache 2023-11-17 15:05:12 +00:00
jackos1998 f202f8c12c Update nixosConfigurations to reference a preferred default config 2023-11-16 21:42:30 +00:00
jackos1998 ddc2ed2919 nixos/jackflix: Add Jellyseerr 2023-11-13 20:49:59 +00:00
jackos1998 a94c778e10 nixos/shill: Add Gitea 2023-11-13 08:14:16 +00:00
jackos1998 7b9045586f nixos/chatterbox: Add Matrix sliding sync proxy
Also fix nginx upstream definitions
2023-11-07 19:20:27 +00:00
jackos1998 2dbc8b398b Split constants into separate lib file 2023-11-02 13:41:50 +00:00
jackos1998 0672e94962 Update inputs 2023-08-27 18:59:07 +01:00
jackos1998 f10ce00f04 nixos/middleman: Add script to deploy mailcow SSL certs 2023-08-27 00:58:55 +01:00