dregil: Limit the number of cores used for building
This commit is contained in:
parent
8b32545af3
commit
5da20a0e67
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue