Skip to content

ci: enable weekly Nix lockfile maintenance - #56

Open
chrapkowski-sg wants to merge 1 commit into
mainfrom
amp/renovate-nix-lock-maintenance
Open

chrapkowski-sg wants to merge 1 commit into
mainfrom
amp/renovate-nix-lock-maintenance

Conversation

@chrapkowski-sg

@chrapkowski-sg chrapkowski-sg commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Renovate already enables its Nix manager, but lockfile maintenance is disabled by default. Rust, Cargo, rust-analyzer, and the container packages come from the nixpkgs revision in flake.lock rather than an owned Cargo manifest. Periodic lock refreshes cover new snapshots of the configured channel.

Change

  • Enable weekly flake.lock maintenance on Mondays before 04:00 UTC, subject to the Renovate app running during that window.
  • Disable automerge specifically for lock-maintenance PRs, overriding the global automerge setting.
  • Leave existing update rules, dependency pins, and manual publication unchanged.

Validation

nix flake check --no-write-lock-file passed all three x86_64-linux checks: shellcheck, formatting, and Renovate configuration validation (Renovate 43.150.1).
git diff --check passed.
Other platforms and remote Renovate execution were not tested.

Follow-up when refreshing dependencies

The first nixpkgs refresh to cacert 3.131.1 or newer needs the obsolete CA blacklist override removed: upstream has already removed the named roots, and the current override fails if a blocked root is absent. This PR intentionally leaves that compatibility change with the dependency refresh so the currently pinned certificate bundle remains protected.

Lock maintenance follows the configured nixpkgs channel; it does not guarantee the latest upstream Rust or rust-analyzer release. This PR does not itself remediate vulnerabilities or rebuild/publish images. Updated dependencies still require reviewed PRs and the existing manual release process.

Refresh flake.lock weekly through Renovate PRs without automerge.
Keep dependency pins and manual publication unchanged.

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a19ca2-54f5-7516-96a2-7e638c85de48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant