From 1a33f45e18b5fbcc9a4eda88b5dbadce9379efa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Tue, 6 Jan 2026 20:27:57 +0100 Subject: [PATCH] hetzner_benchmark: use correct core job count when building --- nix/configurations/hetzner_benchmark.nix | 1 + nix/configurations/hetzner_benchmark/nixos/builder.nix | 10 +--------- .../hetzner_benchmark/nixos/sane-nix.nix | 4 ++-- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/nix/configurations/hetzner_benchmark.nix b/nix/configurations/hetzner_benchmark.nix index 3f84df39..515bfd3a 100644 --- a/nix/configurations/hetzner_benchmark.nix +++ b/nix/configurations/hetzner_benchmark.nix @@ -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 diff --git a/nix/configurations/hetzner_benchmark/nixos/builder.nix b/nix/configurations/hetzner_benchmark/nixos/builder.nix index c8191c8d..1557a346 100644 --- a/nix/configurations/hetzner_benchmark/nixos/builder.nix +++ b/nix/configurations/hetzner_benchmark/nixos/builder.nix @@ -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 = { diff --git a/nix/configurations/hetzner_benchmark/nixos/sane-nix.nix b/nix/configurations/hetzner_benchmark/nixos/sane-nix.nix index dc4e2f13..d73c45e0 100644 --- a/nix/configurations/hetzner_benchmark/nixos/sane-nix.nix +++ b/nix/configurations/hetzner_benchmark/nixos/sane-nix.nix @@ -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 = {