mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[General] Add i686 to x86_64 builders
This commit is contained in:
parent
4279289f25
commit
79e389e3e9
1 changed files with 8 additions and 5 deletions
13
general.nix
13
general.nix
|
|
@ -11,19 +11,22 @@ let
|
|||
mkBuildMachine = {
|
||||
hostName,
|
||||
cores,
|
||||
system ? "x86_64-linux" ,
|
||||
systems ? [ "x86_64-linux" ] ,
|
||||
threads ? (cores * 2),
|
||||
features ? [ ],
|
||||
x86ver ? 1 ,
|
||||
...
|
||||
}@attrs: rec {
|
||||
inherit hostName system;
|
||||
}@attrs: let
|
||||
speedFactor = getSpeed cores threads;
|
||||
in {
|
||||
inherit hostName speedFactor;
|
||||
systems = systems
|
||||
++ optional (any (s: s == "x86_64-linux") systems) "i686-linux"
|
||||
;
|
||||
sshUser = "builder";
|
||||
sshKey = toString buildUserKeyFile;
|
||||
speedFactor = getSpeed cores threads;
|
||||
maxJobs = myLib.math.log2 cores;
|
||||
supportedFeatures = [ "kvm" "benchmark" ]
|
||||
++ optional (system == "x86_64-linux") "i686-linux"
|
||||
++ optional (speedFactor > 8) "big-parallel"
|
||||
++ optional (x86ver >= 2) "gccarch-x86-64-v2"
|
||||
++ optional (x86ver >= 3) "gccarch-x86-64-v3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue