mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
hetzner_benchmark: use correct core job count when building
This commit is contained in:
parent
08f653d95d
commit
1a33f45e18
3 changed files with 4 additions and 11 deletions
|
|
@ -58,6 +58,7 @@ in
|
||||||
./hetzner_benchmark/nixos/misc.nix
|
./hetzner_benchmark/nixos/misc.nix
|
||||||
./hetzner_benchmark/nixos/programs.nix
|
./hetzner_benchmark/nixos/programs.nix
|
||||||
./hetzner_benchmark/nixos/builder.nix
|
./hetzner_benchmark/nixos/builder.nix
|
||||||
|
./hetzner_benchmark/nixos/sane-nix.nix
|
||||||
|
|
||||||
../nixosModules/common/fish.nix
|
../nixosModules/common/fish.nix
|
||||||
../nixosModules/common/disable-command-not-found.nix
|
../nixosModules/common/disable-command-not-found.nix
|
||||||
|
|
|
||||||
|
|
@ -12,15 +12,7 @@
|
||||||
users.groups.remotebuild = { };
|
users.groups.remotebuild = { };
|
||||||
nix = {
|
nix = {
|
||||||
nrBuildUsers = 64; # defaults to 32
|
nrBuildUsers = 64; # defaults to 32
|
||||||
settings = {
|
settings.trusted-users = [ "remotebuild" ];
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nix-daemon.serviceConfig = {
|
systemd.services.nix-daemon.serviceConfig = {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
{
|
{
|
||||||
# 500GB Storage
|
# 500GB Storage
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
min-free = 20 * 1024 * 1024 * 1024;
|
min-free = 50 * 1024 * 1024 * 1024;
|
||||||
max-free = 50 * 1024 * 1024 * 1024;
|
max-free = 100 * 1024 * 1024 * 1024;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nix-daemon.serviceConfig = {
|
systemd.services.nix-daemon.serviceConfig = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue