1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Add default system to systems option

This commit is contained in:
Ethan Turkeltaub 2023-11-22 20:40:03 -05:00
parent 6a3a683d43
commit 72dd60bfc9
No known key found for this signature in database
GPG key ID: 707E91B28D56B61F

View file

@ -59,14 +59,14 @@ in
systems = mkOption {
type = types.listOf types.str;
default = [ ];
default = [ "${stdenv.hostPlatform.uname.processor}-linux" ];
example = literalExpression ''
[
"x86_64-linux"
"aarch64-linux"
]
'';
description = ''
description = lib.mdDoc ''
This option specifies system types the build machine can execute derivations on.
This sets the corresponding `nix.buildMachines.*.systems` option.
@ -136,9 +136,8 @@ in
hostName = "linux-builder";
sshUser = "builder";
sshKey = "/etc/nix/builder_ed25519";
systems = [ "${stdenv.hostPlatform.uname.processor}-linux" ] ++ cfg.systems;
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=";
inherit (cfg) maxJobs supportedFeatures;
inherit (cfg) maxJobs supportedFeatures systems;
}];
nix.settings.builders-use-substitutes = true;