feat: enable jobserver and cores = 0;
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
7d83f696dd
commit
45d660deb5
|
@ -30,6 +30,9 @@ in
|
||||||
{ domain = "*"; item = "nofile"; type = "-"; value = "20480"; }
|
{ domain = "*"; item = "nofile"; type = "-"; value = "20480"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Makes the computer go faster.
|
||||||
|
nixos.jobserver.enable = true;
|
||||||
|
|
||||||
# Memory accounting techniques
|
# Memory accounting techniques
|
||||||
systemd.services.nix-daemon.serviceConfig = {
|
systemd.services.nix-daemon.serviceConfig = {
|
||||||
MemoryAccounting = true;
|
MemoryAccounting = true;
|
||||||
|
@ -63,7 +66,7 @@ in
|
||||||
use-cgroups = true;
|
use-cgroups = true;
|
||||||
http-connections = 0;
|
http-connections = 0;
|
||||||
auto-allocate-uids = true;
|
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.
|
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;
|
fsync-metadata = true;
|
||||||
substituters = [
|
substituters = [
|
||||||
|
|
Loading…
Reference in a new issue