mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Add nix.linux-builder.systems
option to set corresponding nix.buildMachines.*.systems
option
This commit is contained in:
parent
fb9ed3f053
commit
a5812ff83c
1 changed files with 17 additions and 1 deletions
|
@ -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 {
|
maxJobs = mkOption {
|
||||||
type = types.ints.positive;
|
type = types.ints.positive;
|
||||||
default = 1;
|
default = 1;
|
||||||
|
@ -122,7 +138,7 @@ in
|
||||||
sshKey = "/etc/nix/builder_ed25519";
|
sshKey = "/etc/nix/builder_ed25519";
|
||||||
system = "${stdenv.hostPlatform.uname.processor}-linux";
|
system = "${stdenv.hostPlatform.uname.processor}-linux";
|
||||||
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=";
|
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=";
|
||||||
inherit (cfg) maxJobs supportedFeatures;
|
inherit (cfg) maxJobs supportedFeatures systems;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
nix.settings.builders-use-substitutes = true;
|
nix.settings.builders-use-substitutes = true;
|
||||||
|
|
Loading…
Reference in a new issue