feat: enable jobserver and cores = 0;

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
Raito Bezarius 7 months ago
parent 7d83f696dd
commit 45d660deb5

@ -30,6 +30,9 @@ in
{ domain = "*"; item = "nofile"; type = "-"; value = "20480"; }
];
# Makes the computer go faster.
nixos.jobserver.enable = true;
# Memory accounting techniques
systemd.services.nix-daemon.serviceConfig = {
MemoryAccounting = true;
@ -63,7 +66,7 @@ in
use-cgroups = true;
http-connections = 0;
auto-allocate-uids = true;
cores = 64; # 128 is too much, it will explode the RAM for now. Let's keep it serious.
cores = 0;
max-jobs = 2; # Do not build more than 2 derivations at once in the event, both of them are too big, yes this is stupid, fix it in Nix.
fsync-metadata = true;
substituters = [

Loading…
Cancel
Save