Skip to content

chore(.github): add Renovate config for flake and actions updates - #63

Merged
phorcys420 merged 1 commit into
mainfrom
phorcys/renovate
Aug 24, 2026
Merged

phorcys420 merged 1 commit into
mainfrom
phorcys/renovate

Conversation

@phorcys420

Copy link
Copy Markdown
Member

What

Adds .github/renovate.json5 to bring Renovate to coder/box, with the Nix flake as the priority. Resolves the "investigate Dependabot" task: Dependabot can't touch flake.lock, Renovate can.

Closes #37.

Behavior

  • flake.lock refreshed weekly (lockFileMaintenance) — stays on the pinned nixos-25.11 branch 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.
  • nixpkgs release jump (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:recommended enables the other default managers too (github-actions for workflow pins, terraform for coderd/) 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 whole flake.lock within nixos-25.11 (also disko / treefmt-nix / nixos-facter-modules, which track their default branches). Safe → automatic + automerge.
  • nix manager input update → edits flake.nix to bump the nixpkgs branch ref. Breaking → gated behind dashboard approval.

Why not mkDefault the nixpkgs version per host: nixpkgs.url is a flake input, resolved and locked before the NixOS module system runs, so mkDefault in a host local.nix has 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-repo checkout and only moves on git 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.

@phorcys420
phorcys420 marked this pull request as ready for review August 24, 2026 20:46
@phorcys420
phorcys420 merged commit c9ac34c into main Aug 24, 2026
9 checks passed
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.

chore: investigate Dependabot

1 participant