Repository navigation
fix: repin the npins template, run backend CI on main, emit valid nixConfig names - #146
Merged
Merged
Conversation
…Config names templates/npins pinned nixpkgs to the moving channels.nixos.org tarball with a fixed hash, so a fresh checkout failed with a hash mismatch, and its sources.json was npins format 7, which current npins refuses. Repin nixpkgs as a channel pin (immutable releases.nixos.org URL) and upgrade the file to format 8. The npins CI job set `npins.pkgs`, an option that does not exist; it is `flake-file.pkgs`. The npins, flakeless-parts, unflake and tack jobs only ran on labelled PRs, so they never ran on main; run them on push too. flake-parts-builder wrote nixConfig.extraSubstituters and extraTrustedPublicKeys, which Nix does not recognise, and wrote them as empty lists when a part declared none. Emit extra-substituters and extra-trusted-public-keys, only when non-empty, and regenerate templates/parts/flake.nix.
sini
force-pushed
the
fix/npins-template-ci-nixconfig
branch
from
October 12, 2026 20:26
df91dae to
5ec488e
Compare
vic
reviewed
Oct 12, 2026
| cd templates/npins | ||
| sed -i 's/# flake-file = import/flake-file = import/' default.nix | ||
| echo "{ inputs, ... }: { npins.pkgs = import inputs.nixpkgs {}; }" | tee modules/pkgs.nix | ||
| echo "{ inputs, ... }: { flake-file.pkgs = import inputs.nixpkgs {}; }" | tee modules/pkgs.nix |
vic
approved these changes
Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
templates/npins/npins/sources.jsonpinned nixpkgs to the movingchannels.nixos.org/nixpkgs-unstable/nixexprs.tar.zstURL with a fixed hash, so on a fresh checkoutnix-shell . -A flake-file.shfailed with a hash mismatch. The file was also npins format 7, which npins 0.5 refuses ("Version 7 is too old"). nixpkgs is now aChannelpin with an immutablereleases.nixos.orgURL, and the file is format 8. The other pins keep their revisions and hashes. Theirrepository.ownernow matches thedenfulURLs the file already used.npins.pkgs, which fails with "The optionnpins' does not exist". The option isflake-file.pkgs`.if:now also passes ongithub.event_name == 'push', which the workflow already limits tomain. The label path still works.nixConfig.extraSubstitutersandextraTrustedPublicKeys, which Nix does not recognise. It also wrote them as empty lists when a part declared none. It now writesextra-substitutersandextra-trusted-public-keys, and only when the list is non-empty.templates/parts/flake.nixwas regenerated withwrite-flake.Validation
npinsoption error. After the fix it exits 0, and runningwrite-npinsagain leavessources.jsonunchanged.test-flake-parts-builder-nixconfigindev/_bootstrap-tests.nix: it passes on this branch. It fails on main, where the output hasextraSubstituters = [ ... ].nix-shell ./dev/bootstrap-tests.nix --run test-all: all 27 tests pass.templates/parts,nix flake check --override-input flake-file <checkout>passes. With the oldflake.nixit fails, andcheck-flake-fileshows the stalenixConfigblock.nix run ./dev#fmt -- --cireports 0 files changed.