The look for a newer release shows the same box as an update, and the page
reloads when it is done.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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
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
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
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
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
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
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