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>
This commit is contained in:
@@ -440,6 +440,20 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user