Repository navigation
chore(.github): add Renovate config for flake and actions updates - #63
Merged
Merged
Conversation
phorcys420
marked this pull request as ready for review
August 24, 2026 20:46
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.
What
Adds
.github/renovate.json5to bring Renovate tocoder/box, with the Nix flake as the priority. Resolves the "investigate Dependabot" task: Dependabot can't touchflake.lock, Renovate can.Closes #37.
Behavior
flake.lockrefreshed weekly (lockFileMaintenance) — stays on the pinnednixos-25.11branch and moves to its latest commit (backported fixes/security patches). Automerges once CI (fmt/check+lint+ tests) is green, since a within-release refresh is low risk.nixos-25.11→nixos-26.05) is gated behind the dependency dashboard — it only opens when clicked, so the breaking channel bump rides with a box major release instead of surprising operators.config:recommendedenables the other default managers too (github-actions for workflow pins, terraform forcoderd/) plus the dependency dashboard.Validated with
renovate-config-validator --strict.Requires (outside this repo)
Option A / hosted setup: the config stays inert until someone with org admin installs/enables the Mend Renovate GitHub App on
coder/box. No self-hosted workflow or token is needed.Design rationale
Why not Dependabot: it has no support for updating
flake.lock, which is the whole point for a Nix flake repo.Why the split: NixOS releases are
YY.MM(~6 months apart) with no semver major/minor. Crossing a release (25.11→26.05) is the breaking event; within a release branch you only get backported fixes. Those two risk levels map cleanly onto Renovate's two nix mechanisms:lockFileMaintenance→ refreshes the wholeflake.lockwithinnixos-25.11(also disko / treefmt-nix / nixos-facter-modules, which track their default branches). Safe → automatic + automerge.flake.nixto bump the nixpkgs branch ref. Breaking → gated behind dashboard approval.Why not
mkDefaultthe nixpkgs version per host:nixpkgs.urlis a flake input, resolved and locked before the NixOS module system runs, somkDefaultin a hostlocal.nixhas no reach over it (that priority mechanism only applies to module options — e.g.system.stateVersion, which is a separate compat marker and shouldn't track the channel). Deployed hosts already freeze naturally: each box builds from its own/etc/nixos-repocheckout and only moves ongit pull && nixos-rebuild. So the release jump is a deliberate action, which is why it's dashboard-gated to ride with a box major.🤖 Generated with Coder Agents on behalf of @phorcys420.