cachix/cachix-action

cachix-ignore

dysinger opened this issue · 11 comments

It would be nice to avoid pushing some things to the cache. We build all of our targets in one pass with Nix on GitHub but we don't want our docker images pushed to cachix and bloating our cache.

What do you want to filter on - derivation name?

I have the same request, but for me it's flake inputs. Most of my cache space is taken up by different nixexprs.tar.xz.

@hmenke what's the full store path?

@domenkozar For example this one: https://hmenke.cachix.org/64rwqa366f99rd020b2isz634b7mf43b.narinfo (which is just github:NixOS/nixpkgs/2c58a9dac0bd5f5620394c7c6f623355f9f476d2)

That one is trickier to filter out because the name of the derivation is always -source.

For flakes it would be better to have a settings what to cache - everything | dev | runtime.

I've been using a GH Action to build my kwin-lowlatency overlay every time one of the unstable channels updates, and I noticed that most of the storage is being used up by nixexprs.tar.xzs:

2021-02-16_14-35

I'm not sure if this is caused by me specifying nix_path: nixpkgs=channel:nixos-unstable(-small) in my build.yml, or if this is just something that happens all the time when using install-nix-action.

Regardless, it would be great if there were a way to filter these out, either by a user-configurable filter or just as a special case.

Resolving the channel: URI seems to be a special case in Nix itself, if that's at all helpful.

Thanks all for the feedback, I've bumped the priority on this one.

This was released as part of https://github.com/cachix/cachix-action/releases/tag/v9, would you consider it fixed?

I've been using it since it was merged, it works great! Thank you! :)

Closing as fixed due to no complains