mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Treewide] Rename cpuXxxx references to cpu.xxxx references
This commit is contained in:
parent
c4a7421ec6
commit
bc8978484f
7 changed files with 17 additions and 17 deletions
|
|
@ -52,7 +52,7 @@ in
|
|||
IOAccounting = true;
|
||||
IOWeight = 1024 / 10;
|
||||
CPUWeight = 1;
|
||||
CPUQuota = (toString (generalCfg.cores * 80)) + "%";
|
||||
CPUQuota = (toString (generalCfg.cpu.threads * 80)) + "%";
|
||||
Type = mkOverride 20 "simple";
|
||||
};
|
||||
};
|
||||
|
|
@ -103,8 +103,8 @@ in
|
|||
++ optional cfg.contentAddressed "cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA="
|
||||
);
|
||||
|
||||
nix.settings.cores = mkIf (generalCfg.cores != null) generalCfg.cores;
|
||||
nix.settings.max-jobs = mkIf (generalCfg.cores != null) (math.log2 generalCfg.cores);
|
||||
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);
|
||||
|
||||
nix.registry = {
|
||||
nixpkgs.flake = nixpkgs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue