nix template: resolve nixpkgs from the flake lock #329

Merged
Doridian merged 1 commit from nix-inputs-from into main 2026-10-09 14:52:32 -07:00
Owner

Lint nix in the managed nix workflow now uses nix run --inputs-from . 'nixpkgs#nixfmt-tree'.

AGit PRs are treated as fork PRs by Forgejo, so secrets.EXT_GITHUB_TOKEN is empty in their CI runs, and resolving github:NixOS/nixpkgs/nixos-26.05 hits the unauthenticated api.github.com rate limit (seen on FoxDen/core#192). With --inputs-from, nixpkgs comes from the flake's lock and is fetched by rev, with no API call. The nix registry add stays as a fallback for flakes without a nixpkgs input.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Sj6tB24ehbkSj99MKig5Te

Lint nix in the managed nix workflow now uses `nix run --inputs-from . 'nixpkgs#nixfmt-tree'`. AGit PRs are treated as fork PRs by Forgejo, so `secrets.EXT_GITHUB_TOKEN` is empty in their CI runs, and resolving `github:NixOS/nixpkgs/nixos-26.05` hits the unauthenticated api.github.com rate limit (seen on FoxDen/core#192). With `--inputs-from`, nixpkgs comes from the flake's lock and is fetched by rev, with no API call. The `nix registry add` stays as a fallback for flakes without a `nixpkgs` input. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Sj6tB24ehbkSj99MKig5Te
nix template: resolve nixpkgs from the flake lock
All checks were successful
Run reposyncer / test (pull_request) Successful in 22s
NodeJS check / check-nodejs (pull_request) Successful in 48s
Run reposyncer / reposyncer (pull_request) Successful in 37s
Run renovate / renovate (pull_request) Successful in 2m57s
5a70208bec
AGit PRs are treated as fork PRs by Forgejo, so EXT_GITHUB_TOKEN is
empty in their CI runs and resolving the nixpkgs branch through
api.github.com gets rate limited. With --inputs-from, nixpkgs is
fetched by its locked rev (no API call); the registry entry stays as
a fallback for flakes without a nixpkgs input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sj6tB24ehbkSj99MKig5Te
Doridian deleted branch nix-inputs-from 2026-10-09 14:52:32 -07:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
FoxDen/maid!329
No description provided.