105 Commits
Author SHA1 Message Date
nilsandClaude Sonnet 5.5 3881c623cf Release 0.13.5
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
v0.13.5
2026-11-25 10:37:14 +01:00
nilsandClaude Sonnet 5.5 83343f7a18 Tag releases, and name the version on the Overview
nix run .#release ends by creating the annotated tag vX.Y.Z on the released
commit (the tags routers that update from the repository look for); it
refuses a HEAD of another version and does nothing outside a checkout. The
System card on the Overview says which nixos-router and NixOS run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 10:37:14 +01:00
nilsandClaude Sonnet 5.5 3afd7ed4cc Release 0.13.4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
v0.13.4
2026-11-25 10:05:08 +01:00
nilsandClaude Sonnet 5.5 ad9de15344 Hardcode the repository releases come from
routerUpdate.repository (a module option beside the update keys, not a
router.* setting) defaults to the project's repository; the Updates page names
it but no longer has a field for it. Forks and tests set it in a module.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 10:05:08 +01:00
nilsandClaude Sonnet 5.5 6982ae4d73 Release 0.13.3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
v0.13.3
2026-11-25 08:57:00 +01:00
nilsandClaude Sonnet 5.5 3fc54e678e Update from a git repository
router.update.repository names a public repository whose tags vX.Y.Z are
releases. router-update check (daily, and from the Updates page) looks for a
newer one and the Overview says so; router-update --git builds the router
from a tag like a bundle update: the settings are migrated, the new version
must be confirmed, the nixpkgs pin stays. The flake of such a router comes
from the release's config-flake.nix. The global flake registry is off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 08:57:00 +01:00
nilsandClaude Sonnet 5.5 a2dbeb5dea Release 0.13.2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 22:55:54 +01:00
nilsandClaude Sonnet 5.5 9cb2d28ea1 Put the Update and Packages pages on one Updates page
Router software and packages are two parts of one page, with one overlay,
one confirmation banner and both logs. /upgrade redirects to it; the
actions keep their addresses.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 22:55:54 +01:00
nilsandClaude Sonnet 5.5 4aef47a350 Release 0.13.1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 22:10:27 +01:00
nilsandClaude Sonnet 5.5 048b53fe33 Say when a newer NixOS release is out
router-upgrade releases asks the channel server which stable releases exist
(daily timer, and on every check). The Overview and Packages pages tell a
router that follows a stable release when a newer one is out, and offer the
newest two releases as channels instead of a fixed list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 22:10:27 +01:00
nilsandClaude Sonnet 5.5 2e4a596fdc Release 0.13.0
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 11:30:02 +01:00
nilsandClaude Sonnet 5.5 6e23d183fc Add Prometheus metrics: /metrics, node_exporter and a page for it
The web UI serves the router's own state at /metrics (token needed);
router.metrics.nodeExporter runs node_exporter for the machine's and opens
its port only to the zones named. The Prometheus page edits those settings
and shows the scrape configuration.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 11:30:02 +01:00
nilsandClaude Sonnet 5.5 32bf0d5fde Release 0.12.18
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 08:24:33 +01:00
nilsandClaude Sonnet 5.5 3660a28ce5 Keep the columns still when the certificate log is opened
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 08:24:33 +01:00
nilsandClaude Sonnet 5.5 e45a69c48b Release 0.12.17
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 19:56:54 +01:00
nilsandClaude Sonnet 5.5 eb11fc30b3 Name the element a change is in and let the diff show the lines around it
Each group of changes gets a bar with its place in the settings (like
router.firewall.rules[3], and the rule's zones) and buttons to show more
lines above and below, or all that are hidden.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 19:56:54 +01:00
nilsandClaude Sonnet 5.5 f31262df31 Release 0.12.16
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 13:46:25 +01:00
nilsandClaude Sonnet 5.5 7c1282c73a Explain the firewall rule columns in tooltips
The paragraph under the table gives way to a hint; each heading says what
its column is.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 13:46:25 +01:00
nilsandClaude Sonnet 5.5 2102207a24 Show the pending changes as a colored diff with line numbers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 13:46:25 +01:00
nilsandClaude Sonnet 5.5 a3fed902ef Release 0.12.15
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 13:26:30 +01:00
nilsandClaude Sonnet 5.5 e3f93698a9 Ask about a reboot in a box over the page
The reboot links on the Overview open the question instead of sending
you to the Advanced page, where the button is out of sight.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 13:26:30 +01:00
nilsandClaude Sonnet 5.5 81eea34501 Release 0.12.14
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 12:10:58 +01:00
nilsandClaude Sonnet 5.5 8fe0a72897 Show the log in the page over the site while updating or upgrading
The Update page's overlay carries the update's log; the Packages page gets
an overlay too, named after the step that runs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 12:10:58 +01:00
nilsandClaude Sonnet 5.5 d6de7781fe Release 0.12.13
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 11:42:10 +01:00
nilsandClaude Sonnet 5.5 7b4ecee518 List the derivations a package upgrade would build
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 11:42:10 +01:00
nilsandClaude Sonnet 5.5 38e7613b34 Release 0.12.12
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 10:03:53 +01:00
nilsandClaude Sonnet 5.5 55cf5f71c9 Show progress for uploads and updates, and reload when they are done
An uploaded bundle gets a progress bar over the page; a running update an
overlay that follows its steps. A page that finished working, or that was sent
to the login page by a restart, is loaded whole.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 10:03:53 +01:00
nilsandClaude Sonnet 5.5 adb804570a Release 0.12.11
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 09:00:44 +01:00
nilsandClaude Sonnet 5.5 163df5966d Ignore a package preview made by another nixos-router
A preview is kept until the next one; after an update it could still show
the list the older version made.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 09:00:44 +01:00
nilsandClaude Sonnet 5.5 6e097b7473 Test that an update keeps upgraded packages
The update test upgrades nixpkgs first; the pin and the lock must survive
a rolled-back update, a confirmed one and the rebuild after it. The channel
server moves to the shared test helpers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 08:32:13 +01:00
nilsandClaude Sonnet 5.5 7b3a83ba0b Release 0.12.10
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 01:03:40 +01:00
nilsandClaude Sonnet 5.5 79b81446e7 Hide the system and build-only versions from the package list
The system's own path is not a package; its revision change is shown above
the list. A version that continues another new one (5.6.0-go next to 5.6.0)
is a build-time part of the same package.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 01:03:40 +01:00
nilsandClaude Sonnet 5.5 1a523a2d74 Release 0.12.9
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 00:18:18 +01:00
nilsandClaude Sonnet 5.5 c2115aba03 Update pages in place instead of reloading them
A page that is working fetches itself again and swaps only its content;
the log on the Packages page follows new text.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-18 00:18:18 +01:00
nilsandClaude Sonnet 5.5 4ee28b812b Release 0.12.8
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-09 17:26:15 +01:00
nilsandClaude Sonnet 5.5 b37d8a0961 Allow previewing an older NixOS release with --downgrade
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-09 08:25:36 +01:00
nilsandClaude Sonnet 5.5 1efa068443 Release 0.12.7
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 23:28:47 +01:00
nilsandClaude Sonnet 5.5 3d5ec77f57 Follow the channel server's redirect and offer the stable releases
channels.nixos.org answers <branch>/git-revision with a redirect, which
router-upgrade check did not follow: on a real router it saw an empty
answer. The test channel is now an HTTP server that redirects the same way.

The page labelled the running release "stable", but nixos-unstable already
calls itself the next release (26.11 does not exist as a branch yet). It
offers none, unstable and the stable releases listed in the code (26.05).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 23:28:47 +01:00
nilsandClaude Sonnet 5.5 f4a192d416 Release 0.12.6
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 22:27:39 +01:00
nilsandClaude Sonnet 5.5 dd03127a24 Add the Packages page for nixpkgs upgrades
A page under System for router-upgrade: the channel to follow, Check,
Preview (the package versions that change, the download size, what would be
built here, a reboot note for a new kernel), Download now and Upgrade. The
steps run in router-upgrade.service, which the page asks through a request
file; the last run's output is kept in upgrade/last.log because a finished
one-shot unit has no journal to look up.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 22:27:39 +01:00
nilsandClaude Sonnet 5.5 4ac8c6ea6f Release 0.12.5
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 21:06:10 +01:00
nilsandClaude Sonnet 5.5 56d6e153ae Add router-upgrade for nixpkgs upgrades on the router
router.update.channel names the nixpkgs branch to follow (unstable or a
release like 26.05). router-upgrade check compares its newest tested
revision with the running one; preview locks a copy of the configuration
flake to it and lists the packages that change version and the size of the
download without fetching anything; download fetches it; apply takes the
lock and activates with commit-confirm, the lock going back on a rollback
or a failed build. router-update keeps an upgraded nixpkgs pinned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 21:06:10 +01:00
nilsandClaude Sonnet 5.5 af614ea501 Release 0.12.4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 18:17:16 +01:00
nilsandClaude Sonnet 5.5 bda07ae163 Fold the certificate's order log away
The log of the last issuing run is only of interest when something went
wrong. It is a collapsed section now, open when the last run failed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 18:17:01 +01:00
nilsandClaude Sonnet 5.5 5572172904 Re-resolve WireGuard peers' endpoint names
systemd-networkd resolves an endpoint name once, when it creates the
device. A peer behind a dynamic DNS name that changes its address was
never found again until the next restart.

A timer (router.wireguardEndpointRefresh, default 1min, null for off)
runs wg set for the peers with a name whose last handshake is older than
135 seconds, as wireguard-tools' reresolve-dns does. Working tunnels are
left alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-08 18:17:01 +01:00
nilsandClaude Sonnet 5.5 879b618981 Release 0.12.3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-05 08:10:59 +01:00
nilsandClaude Sonnet 5.5 98b0ebc130 Type the REST API's responses
Every tool now returns a Go struct (apitypes.go) instead of a map, and
typeschema.go derives the OpenAPI response schemas from those types by
reflection (json, doc and enum tags), so the document cannot drift from
what is sent. Text results are documented as text/plain, settings in
answers use the typed settings schema, and edits answer with EditResponse.

TestResponsesMatchTheirSchemas checks real responses against the
generated schemas.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-05 08:10:59 +01:00
nilsandClaude Sonnet 5.5 e3209569bd Release 0.12.2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-01 22:01:38 +01:00
nilsandClaude Sonnet 5.5 876080d3f5 Show the API reference with Redoc
Replace the hand-built reference page with Redoc rendering the generated
OpenAPI document. The bundle is fetched by package.nix (pinned hash) and
served from the UI's own address; only that page gets a style nonce and
worker-src blob: in its CSP.

The spec now explains authentication, saved-not-applied, ETags (If-Match,
409) and errors, documents the ETag header, gives each operation a curl
sample, and no longer names MCP tools. Area GETs no longer emit
"parameters": null, which Redoc could not render.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-01 22:01:30 +01:00
nilsandClaude Sonnet 5.5 64e08fb485 Add typed settings areas to the REST API
/api/v1/settings/router/firewall, .../router/lans/<name>, .../system, down to
a single option: GET reads, PUT replaces, PATCH merges, DELETE removes, with
the settings' ETag/If-Match and the same limits as the whole-document edit
(editSettings is now shared). Values are checked against a JSON Schema made
from the option documentation (schema.go reads the types, which nixosOptionsDoc
describes in words); a wrong type, a value out of range or an unknown key is
refused with its place. The OpenAPI document has the area paths with their
schemas; the API reference page lists every area's options.

Tests: unit tests for the type reader, the validator and the paths; the real
option file and a router's own settings validate (ROUTER_OPTIONS_JSON,
LIVE_SETTINGS_JSON); a subtest in apply.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-11-01 20:09:20 +01:00