dregil: Limit the number of cores used for building

This commit is contained in:
Alexander Kobjolke 2023-12-16 14:29:27 +01:00
parent 8b32545af3
commit 5da20a0e67

View file

@ -125,6 +125,9 @@ in {
environment.etc."nix/inputs/nixpkgs".source = inputs.nixpkgs-unstable.outPath; environment.etc."nix/inputs/nixpkgs".source = inputs.nixpkgs-unstable.outPath;
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs-unstable}" ]; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs-unstable}" ];
nix.settings.max-jobs = 3;
nix.settings.cores = 4;
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;