Skip to content

Commit 8b48251

Browse files
committed
Add more NLB params
1 parent 580e9c1 commit 8b48251

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

modules/nix-darwin/default.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,20 @@ in
247247
Whether Determinate Nix's native Linux builder is enabled.
248248
'';
249249
};
250+
builder.memoryBytes = lib.mkOption {
251+
type = types.ints.positive;
252+
default = 8000000000;
253+
description = ''
254+
How much memory, in bytes, to allocate to the native Linux builder process.
255+
'';
256+
};
257+
builder.cpuCount = lib.mkOption {
258+
type = types.ints.positive;
259+
default = 1;
260+
description = ''
261+
The number of CPUs to allocate to the native Linux builder process. We do NOT recommend changing this value.
262+
'';
263+
};
250264
garbageCollector.strategy = lib.mkOption {
251265
type = types.nullOr (
252266
types.enum [
@@ -755,6 +769,14 @@ in
755769
"builder"
756770
"state"
757771
]
772+
[
773+
"builder"
774+
"memoryBytes"
775+
]
776+
[
777+
"builder"
778+
"cpuCount"
779+
]
758780
[
759781
"garbageCollector"
760782
"strategy"

0 commit comments

Comments
 (0)