Fetch Token TV flake from GitLab over HTTPS #348
No reviewers
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config!348
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/token-tv-gitlab-input"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fetch the Token TV input from its imported GitLab repository over public HTTPS. The input name and nixpkgs follow relationship remain unchanged. Public fetching removes the need for a GitLab SSH credential on builders.
The lock entry preserves commit
796654364fdbd3a82d3c1f43c6b170044c58f2b9and its exact NAR hash; this changes transport/origin rather than the packaged application. Validation: fetching the GitLab input succeeded, revision/hash equality passed,nix flake checkpassed across all four configurations, and formatting/whitespace checks passed.Project migration MR: https://forge.nimmog.uk/nimmo/token-tv-nix/-/merge_requests/3 . Its current-head MR pipeline https://forge.nimmog.uk/nimmo/token-tv-nix/-/pipelines/2 passed, including 75 package tests and eight module tests ingested by GitLab. Token TV's original Forgejo Actions is disabled; other repositories' CI remains enabled.
Current-head automated review is ready to merge and consumer CI passes. This branch is separate from the GitLab MCP registry changes. No host activation performed. Reverting the two-file change restores the Forgejo input.
Closes #347. Public GitLab fetching was exercised without credentials; this transport change preserves the application revision and NAR hash.
WIP: Fetch Token TV flake from GitLab over HTTPSto Fetch Token TV flake from GitLab over HTTPSAutomated code review
Reviewed commit:
f32685c1f9cf931603c654dbfd3f7f23a698c7e9Verdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
The supplied change repoints the single
token-tvflake input from the SSH originssh://git@git.nimmog.uk:2222/nimmo/token-tv.nix.gittogit+https://forge.nimmog.uk/nimmo/token-tv-nix.git?ref=mainin flake.nix (line 86), with the matching flake.lock rewrite. I verified every consumer addresses the input only by the unchanged attribute nametoken-tv: modules/services/token-tv.nix (inputs.token-tv.nixosModules.default,inputs.token-tv.packages.${...}.default), modules/profiles/ai-runtime.nix (tokenTv = inputs.token-tv.packages...), flake.nix (packages.x86_64-linux.token-tv, consumed by scripts/check-token-tv-config.nix viaflake.packages.x86_64-linux.token-tv), and thetoken-tvgroup in lib/auto-update-policy.nix (inputs = [ "token-tv" ]). No script, workflow, test, or policy file hardcodes either origin URL (grep forgit.nimmog.uk/token-tv.nix/token-tv-nixmatches only flake.nix, flake.lock, and a README.md link). The lock entry keeps the samerev(796654364fdbd3a82d3c1f43c6b170044c58f2b9),narHash,lastModified,revCount, and thenixpkgsfollows edge, so resolved outputs are unchanged. The new lock shape ("ref": "main"in bothlockedandoriginal, URL without the?ref=query) is byte-consistent with the already-lockedredviewinput, whose flake.nix URL uses the same?ref=mainform (flake.nix line 90), so the two changed files are mutually consistent. No defect demonstrable from the supplied evidence was found in the changed files.Blocking findings
None.
Important findings
None.
Suggestions
None.
Tests and validation
Questions
https://git.nimmog.uk/nimmo/token-tv.nix, the pre-migration location, while flake.nix line 86 now points atforge.nimmog.uk/nimmo/token-tv-nix. AGENTS.md line 47 states 'When making configuration changes: Review README.md and update it if appropriate. Stage README changes with the rest of the commit.' Should that documentation link be updated in this same change, or is the old URL still a working redirect?ssh://git@git.nimmog.uk:2222/...(e.g. redview at flake.lock line 804, nixos-auto-update, kiwifs-nix, navidrome-mcp), and .forgejo/workflows/attic-cache.yml runsnix flake checkplusscripts/attic-cache-build.sh --update-buildwith no forge credentials in its env. Can you confirm the unauthenticated fetch ofhttps://forge.nimmog.uk/nimmo/token-tv-nix.gitwas actually exercised (e.g. an unauthenticatedgit cloneorcurl -Ion the smart-HTTP endpoint), given that flake update still requires SSH access for the other inputs?Review limitations
forge.nimmog.uk/nimmo/token-tv-nix.gitexists, is publicly readable, serves commit 796654364fdbd3a82d3c1f43c6b170044c58f2b9, or that the pinned narHashsha256-W6l5dKR1oMwtoHtRQlpP4wPvkEuZ4zQ+YzFNFpUU1MI=matches at that origin; I relied on the PR's stated validation.nix flake check,just test, or any repository code (the review container has no Nix), so the four-configuration check result is taken from the PR text rather than reproduced.nimmo/token-tv-nixrepository is not vendored in this checkout, so I could not confirm thatnixosModules.defaultandpackages.<system>.defaultstill exist at the pinned rev; that holds only if the pinned rev and NAR are genuinely identical.Diff coverage
flake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchReview metadata
Addressed the review questions before the follow-up push:
719f93f. Focused diff/whitespace review passed; this follow-up changes documentation only, so the already-passing flake validation remains applicable.796654364fdbd3a82d3c1f43c6b170044c58f2b9using an empty credential helper/header and disabled prompts. Fetch succeeded after the project MR was merged. The earlier Nix update also preserved the exact revision and NAR hash.GitLab project MR !3 was merged by nimmo independently during review follow-up. Its MR pipeline #2 passed with all eight JUnit cases ingested; main pipeline #3 is now running. I have not merged this consumer MR or deployed hosts. Pushing the README correction next to obtain a review of the new head.
Automated code review
Reviewed commit:
719f93fd8509f0f0cb84b3574b0555afa41d64f5Verdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
The change repoints the
token-tvflake input from the SSH Forgejo URL (ssh://git@git.nimmog.uk:2222/nimmo/token-tv.nix.git) to the HTTPS URLhttps://forge.nimmog.uk/nimmo/token-tv-nix.git?ref=main, updates the matchingflake.lockentry (same pinnedrev796654364fdbd3a82d3c1f43c6b170044c58f2b9 andnarHash), and updates the README link. I checked every consumer in the checked-out tree:modules/services/token-tv.nix(inputs.token-tv.nixosModules.default,inputs.token-tv.packages...),modules/profiles/ai-runtime.nix(inputs.token-tv.packages...),flake.nix(packages.x86_64-linux.token-tv,checks.x86_64-linux.token-tv-configviascripts/check-token-tv-config.nix), andlib/auto-update-policy.nix(name = "token-tv"; inputs = [ "token-tv" ]) all reference the input by attribute name, never by URL, so the origin change is transparent to them. The new lock entry'soriginal/lockedshape (ref: "main"plus?ref=mainin flake.nix) matches the existingredviewentry format at flake.lock lines 799-809, so it is well-formed and consistent with the repository's existing convention. No remaining reference totoken-tv.nixor the old SSH URL exists anywhere in the tree (grep fortoken-tv.nixandgit.nimmog.ukshows only unrelated repositories/hosts). No defect caused by the supplied changes was found.Blocking findings
None.
Important findings
None.
Suggestions
None.
Tests and validation
Questions
forge.nimmog.uk/nimmo/token-tv-nix.gitis reachable over unauthenticated git-over-HTTPS from all builder hosts in.forgejo/workflows/attic-cache.yml, since the change removes the SSH identity/credential dependency (modules/common/system.nix,modules/services/hermes-fleet-ssh.nixconfigure SSH forgit.nimmog.uk, not forforge.nimmog.uk).Review limitations
token-tvinput itself, so I cannot verify that the migrated GitLab repository still serves commit 796654364fdbd3a82d3c1f43c6b170044c58f2b9 with NAR hash sha256-W6l5dKR1oMwtoHtRQlpP4wPvkEuZ4zQ+YzFNFpUU1MI=; the pinned values are unchanged in the diff.nix flake check,nix flake show, and CI results were not re-verified; validation evidence is limited to the static text of the changed files and their consumers.forge.nimmog.ukis the intended GitLab host for this migration; it appears only in the changed files and is not referenced elsewhere in the tree.Diff coverage
README.md: reviewed — included in a context-limited batchflake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchReview metadata
nimmo referenced this pull request2026-10-16 22:24:10 +01:00