I’ve been hacking on a nixos module that allows automatic setup and teardown of a gitlab-runner
that supports nix builds natively (i.e. they use the host nix-daemon). This means that you get caching of nix buils for free!
One caveat is that the
/nix/store is mounted inside the
gitlab-runner container so it’s perhaps
not wise to use this in a shared environment. But for your company or your toy project, this
might be perfect to get cheap rebuilds of your gitlab projects.
If you’re interested. Have a look here: