hetzner_benchmark: use correct core job count when building

This commit is contained in:
Primrose 2026-01-06 20:27:57 +01:00
parent 08f653d95d
commit 1a33f45e18
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 4 additions and 11 deletions

View file

@ -58,6 +58,7 @@ in
./hetzner_benchmark/nixos/misc.nix
./hetzner_benchmark/nixos/programs.nix
./hetzner_benchmark/nixos/builder.nix
./hetzner_benchmark/nixos/sane-nix.nix
../nixosModules/common/fish.nix
../nixosModules/common/disable-command-not-found.nix

View file

@ -12,15 +12,7 @@
users.groups.remotebuild = { };
nix = {
nrBuildUsers = 64; # defaults to 32
settings = {
trusted-users = [ "remotebuild" ];
min-free = 50 * 1024 * 1024 * 1024; # start gc when < 10 GB is available
max-free = 100 * 1024 * 1024 * 1024; # stop gc when 20 GB is available
max-jobs = "auto";
cores = 0;
};
settings.trusted-users = [ "remotebuild" ];
};
systemd.services.nix-daemon.serviceConfig = {

View file

@ -2,8 +2,8 @@
{
# 500GB Storage
nix.settings = {
min-free = 20 * 1024 * 1024 * 1024;
max-free = 50 * 1024 * 1024 * 1024;
min-free = 50 * 1024 * 1024 * 1024;
max-free = 100 * 1024 * 1024 * 1024;
};
systemd.services.nix-daemon.serviceConfig = {