modules/nixos/hydra: set max-jobs for builders

This commit is contained in:
zowoq 2024-07-31 12:32:39 +10:00
parent 57bcb2cf22
commit 3f0c7bba3c

View file

@ -30,12 +30,13 @@
# remote builders set in /etc/nix/machines + localhost # remote builders set in /etc/nix/machines + localhost
buildMachinesFiles = [ buildMachinesFiles = [
(pkgs.runCommand "etc-nix-machines" { machines = config.environment.etc."nix/machines".text; } '' (pkgs.runCommand "etc-nix-machines" { machines = config.environment.etc."nix/machines".text; } ''
printf "$machines" > $out printf "$machines" | grep build04 > $out
substituteInPlace $out --replace 'ssh-ng://' 'ssh://' substituteInPlace $out --replace-fail 'ssh-ng://' 'ssh://'
substituteInPlace $out --replace-fail ' 80 ' ' 2 '
'') '')
(pkgs.writeText "local" '' (pkgs.writeText "local" ''
localhost x86_64-linux,builtin - 8 1 ${pkgs.lib.concatStringsSep "," config.nix.settings.system-features} - - localhost x86_64-linux,builtin - 2 1 ${pkgs.lib.concatStringsSep "," config.nix.settings.system-features} - -
'') '')
]; ];
hydraURL = "https://hydra.nix-community.org"; hydraURL = "https://hydra.nix-community.org";