Skip to content

feat: mo update critical flake inputs auto pr#2086

Merged
samrose merged 2 commits intodevelopfrom
auto-update-pr
Mar 16, 2026
Merged

feat: mo update critical flake inputs auto pr#2086
samrose merged 2 commits intodevelopfrom
auto-update-pr

Conversation

@samrose
Copy link
Copy Markdown
Collaborator

@samrose samrose commented Mar 16, 2026

Summary

This PR adds automated monthly and bimonthly workflows to keep flake inputs up to date
Changes

Monthly workflow for critical inputs (update-flake-lock.yml)

  • Runs on the 1st of every month (and via manual dispatch)
  • Updates the four inputs that track fast-moving upstream targets:
    • nixpkgs (nixos-unstable channel)
    • rust-overlay (Rust toolchain releases)
    • multigres (upstream project, flake = false)
    • nix-eval-jobs (build tooling)
  • Opens a PR against develop using peter-evans/create-pull-request
  • No GitHub App required, uses the built-in GITHUB_TOKEN

Bimonthly workflow for non-critical inputs (update-flake-lock-non-critical.yml)

  • Runs on the 1st of every other month (and via manual dispatch)

  • Updates stable utility libraries that change infrequently:

    • devshell
    • flake-parts
    • flake-utils
    • git-hooks
    • nix-darwin
    • nix-editor
    • nix2container
    • treefmt-nix
  • Opens a separate PR against develop on its own branch to avoid conflicts with the monthly updates

  • nix-eval-jobs was the only input with a nixpkgs dependency that did not follow this flake's nixpkgs

  • Adding nix-eval-jobs.inputs.nixpkgs.follows = "nixpkgs" ensures it uses the same package set as everything else

  • Eliminates a redundant nixpkgs copy from the lock file

Inputs not updated by either workflow

  • nixpkgs-oldstable is intentionally pinned to a specific commit for extensions requiring older package versions and must not be updated automatically

@samrose samrose requested review from a team as code owners March 16, 2026 13:45
@samrose samrose added this pull request to the merge queue Mar 16, 2026
Merged via the queue into develop with commit 45d5ba5 Mar 16, 2026
39 checks passed
@samrose samrose deleted the auto-update-pr branch March 16, 2026 19:41
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.

2 participants