From 185bc3876d596d11501e20f901316e6c30835ed2 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 19 Dec 2024 15:57:30 -0500 Subject: [PATCH] macos: Add linux-builder for arm builds --- .../darwin/basantis-Mac-Studio/default.nix | 1 + modules/darwin/aarch64-linux-builder.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 modules/darwin/aarch64-linux-builder.nix diff --git a/configurations/darwin/basantis-Mac-Studio/default.nix b/configurations/darwin/basantis-Mac-Studio/default.nix index 09f9ac6..c72f95c 100644 --- a/configurations/darwin/basantis-Mac-Studio/default.nix +++ b/configurations/darwin/basantis-Mac-Studio/default.nix @@ -9,6 +9,7 @@ in self.nixosModules.common self.darwinModules.default self.darwinModules.remote-builder + self.darwinModules.aarch64-linux-builder flake.inputs.agenix.darwinModules.default flake.inputs.github-nix-ci.darwinModules.default self.nixosModules.github-runner diff --git a/modules/darwin/aarch64-linux-builder.nix b/modules/darwin/aarch64-linux-builder.nix new file mode 100644 index 0000000..5258c37 --- /dev/null +++ b/modules/darwin/aarch64-linux-builder.nix @@ -0,0 +1,18 @@ +{ + nix = { + linux-builder = { + enable = true; + ephemeral = true; + maxJobs = 4; + config = { + virtualisation = { + darwin-builder = { + diskSize = 80 * 1024; + memorySize = 16 * 1024; + }; + cores = 6; + }; + }; + }; + }; +}