From 0377841cc98b120360539d7e66383d68149c3ebf Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Wed, 27 Sep 2023 10:50:15 -0700 Subject: [PATCH] Give `linux-builder` more resources --- flake.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index f3d60a824..ace7a5891 100644 --- a/flake.nix +++ b/flake.nix @@ -188,7 +188,16 @@ ]; nix.registry.my.flake = inputs.self; }; - extraModules = singleton { nix.linux-builder.enable = true; }; + extraModules = singleton { + nix.linux-builder.enable = true; + nix.linux-builder.maxJobs = 8; + nix.linux-builder.modules = [ + ({ + virtualisation.darwin-builder.memorySize = 16 * 1024; + virtualisation.cores = 8; + }) + ]; + }; inherit homeStateVersion; homeModules = attrValues self.homeManagerModules; });