1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

Merge pull request from krostar/master

Provide 'supportedFeatures' option to the linux builder module
This commit is contained in:
Michael Hoang 2023-10-19 14:53:14 +01:00 committed by GitHub
commit 19f75c2b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,16 @@ in
This sets the corresponding `nix.buildMachines.*.maxJobs` option.
'';
};
supportedFeatures = mkOption {
type = types.listOf types.str;
default = [ "kvm" "benchmark" "big-parallel" ];
description = lib.mdDoc ''
This option specifies the list of features supported by the Linux builder.
This sets the corresponding `nix.buildMachines.*.supportedFeatures` option.
'';
};
};
config = mkIf cfg.enable {
@ -97,9 +107,8 @@ in
sshUser = "builder";
sshKey = "/etc/nix/builder_ed25519";
system = "${stdenv.hostPlatform.uname.processor}-linux";
supportedFeatures = [ "kvm" "benchmark" "big-parallel" ];
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=";
inherit (cfg) maxJobs;
inherit (cfg) maxJobs supportedFeatures;
}];
nix.settings.builders-use-substitutes = true;