diff options
| author | Ethan Turkeltaub <ethan.turkeltaub@hey.com> | 2023-11-22 18:05:13 -0500 |
|---|---|---|
| committer | Ethan Turkeltaub <ethan.turkeltaub@hey.com> | 2023-11-22 20:43:27 -0500 |
| commit | a5812ff83c0d5e8b5af40cf188929a5a393d77c6 (patch) | |
| tree | ce9313c78c60f18344104005ed3e20ae9077c868 /modules | |
| parent | fb9ed3f0532e7e05d52062ca834045a8a88b879d (diff) | |
Add `nix.linux-builder.systems` option to set corresponding `nix.buildMachines.*.systems` option
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nix/linux-builder.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/nix/linux-builder.nix b/modules/nix/linux-builder.nix index da8d791..b5ba019 100644 --- a/modules/nix/linux-builder.nix +++ b/modules/nix/linux-builder.nix @@ -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; |
