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>
This commit is contained in:
2026-11-25 10:05:08 +01:00
co-authored by Claude Sonnet 5.5
parent 6982ae4d73
commit ad9de15344
11 changed files with 85 additions and 101 deletions
-14
View File
@@ -440,20 +440,6 @@ in
'';
};
update.repository = mkOption {
type = types.nullOr (types.strMatching "https?://[A-Za-z0-9.-]+(:[0-9]+)?(/[A-Za-z0-9._~/-]*)?");
default = null;
example = "https://git.example.org/me/nixos-router";
description = ''
A public git repository of nixos-router whose tags `vX.Y.Z` are releases.
`router-update check` (daily, and in the web UI) looks for a newer tag,
and `router-update --git` builds the router from it, like an update from
a bundle: the settings are migrated and the new version must be
confirmed. The repository is trusted (TLS and the tag), nothing is
signed on this path. null: updates come from bundles and update servers.
'';
};
update.channel = mkOption {
type = types.nullOr (types.strMatching "unstable|[0-9]{2}\\.[0-9]{2}");
default = null;