1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

Add nix.linux-builder.systems option to set corresponding nix.buildMachines.*.systems option

This commit is contained in:
Ethan Turkeltaub 2023-11-22 18:05:13 -05:00
parent fb9ed3f053
commit a5812ff83c
No known key found for this signature in database
GPG key ID: 707E91B28D56B61F

View file

@ -57,6 +57,22 @@ in
'';
};
systems = mkOption {
type = types.listOf types.str;
default = [ ];
example = literalExpression ''
[
"x86_64-linux"
"aarch64-linux"
]
'';
description = ''
This option specifies system types the build machine can execute derivations on.
This sets the corresponding `nix.buildMachines.*.systems` option.
'';
};
maxJobs = mkOption {
type = types.ints.positive;
default = 1;
@ -122,7 +138,7 @@ in
sshKey = "/etc/nix/builder_ed25519";
system = "${stdenv.hostPlatform.uname.processor}-linux";
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=";
inherit (cfg) maxJobs supportedFeatures;
inherit (cfg) maxJobs supportedFeatures systems;
}];
nix.settings.builders-use-substitutes = true;