11 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 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 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