mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Nix] use CGroups and always allow substitutes
We are almost always better downloading everything considering our network speed.
This commit is contained in:
parent
66c0c21178
commit
7a79e4234c
1 changed files with 3 additions and 0 deletions
|
|
@ -112,6 +112,9 @@ in
|
|||
++ optional cfg.contentAddressed "cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA="
|
||||
);
|
||||
|
||||
nix.settings.use-cgroups = true;
|
||||
nix.settings.always-allow-substitutes = true;
|
||||
|
||||
nix.settings.cores = mkIf (generalCfg.cpu.threads != null) generalCfg.cpu.threads;
|
||||
nix.settings.max-jobs = mkIf (generalCfg.cpu.threads != null) (math.log2 generalCfg.cpu.threads);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue