mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 13:28:16 +00:00
Add default system to systems
option
This commit is contained in:
parent
6a3a683d43
commit
72dd60bfc9
1 changed files with 3 additions and 4 deletions
|
@ -59,14 +59,14 @@ in
|
||||||
|
|
||||||
systems = mkOption {
|
systems = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ ];
|
default = [ "${stdenv.hostPlatform.uname.processor}-linux" ];
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
[
|
[
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
]
|
]
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = lib.mdDoc ''
|
||||||
This option specifies system types the build machine can execute derivations on.
|
This option specifies system types the build machine can execute derivations on.
|
||||||
|
|
||||||
This sets the corresponding `nix.buildMachines.*.systems` option.
|
This sets the corresponding `nix.buildMachines.*.systems` option.
|
||||||
|
@ -136,9 +136,8 @@ in
|
||||||
hostName = "linux-builder";
|
hostName = "linux-builder";
|
||||||
sshUser = "builder";
|
sshUser = "builder";
|
||||||
sshKey = "/etc/nix/builder_ed25519";
|
sshKey = "/etc/nix/builder_ed25519";
|
||||||
systems = [ "${stdenv.hostPlatform.uname.processor}-linux" ] ++ cfg.systems;
|
|
||||||
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…
Add table
Reference in a new issue