8000 CI: cache the Nix store in the GitHub Actions cache (magic-nix-cache or similar) · Issue #14 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

CI: cache the Nix store in the GitHub Actions cache (magic-nix-cache or similar) #14

Open

Description

@Lillecarl

Use the GitHub Actions cache as a Nix binary cache in CI.

magic-nix-cache does this with one step after the Nix install. It needs no secret, so pull requests from forks get the cache too. It does not replace the cachix push: cachix stays the cache that clusters and users substitute from.

Today a runner substitutes from cache.nixos.org, nixkube.c 8000 achix.org and lillecarl.cachix.org only. A path that none of them holds (a check, a test VM, a failed push) builds again on every run.

Where: ghanix generates every workflow in this repository (nix run --file . ci-workflow-update). Add the step to the generator once, next to cachix/install-nix-action, and every workflow gets it.

Limits: the GHA cache has read and write rate limits and a per-repository size limit with eviction. A large rebuild can hit the rate limit; magic-nix-cache then builds instead of failing.

Alternatives:


Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: monorepo
    on Oct 19, 2026
  2. added theissue type on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: monorepo

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0