mitchellh / nixos-config

My NixOS configurations.
https://twitter.com/mitchellh/status/1346136404682625024
MIT License
1.93k stars 191 forks source link

Run a Linux builder in the background #32

Open lucperkins opened 1 year ago

lucperkins commented 1 year ago

I recently added a module to my nix-darwin config (see here) that runs a Linux builder as a background process on my Apple M1. I was inspired by this comment on Discourse and the fantastic work of Gabriella Gonzalez. If you'd like, I'd be more than happy to add this capability to your configs here as an alternative to the Docker builder. I can now run nix build <flake>#packages.aarch64-linux.<package> without a second thought on macOS and it's been a real game changer for me.