GeistHaus
log in · sign up

Building and Privately Caching x86 and aarch64 NixOS Systems with Github Actions

lgug2z.com

In the previous article we walked through how to set up our very own Nix binary cache. It's great being able to run attic push system /run/current-system on whichever machine we are currently using, but the the chances are that if you use Nix to manage your system configurations, you have a system configuration monorepo, and depending on how many machines and architectures you are targeting, it can quickly become tiresome to manually push to the cache from each of them. My configuration repo presently has 4 targets: NixOS VM that runs on WSL (x86_64) Bare metal Hetzner server (x86_64) Raspberry Pi running in my home network (aarch64) Production instance of https://notado.app (x86_64) Building NixOS system configurations NixOS system configurations are essentially build artifacts. Since they are build artifacts, it makes sense to build, cache and push them in CI pipelines, right? Right! Although GitHub Actions is awful, it can be made siginificantly less awful by installing Nix immedi…

0 pages link to this URL

No pages have linked to this URL yet.