Make nix scheduling options compatible with 21.11
This commit is contained in:
parent
7b9a52e37f
commit
1df9a87520
|
@ -64,11 +64,15 @@ in
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
'';
|
'';
|
||||||
|
} // (if (builtins.compareVersions config.system.nixos.release "21.11" != -1) then {
|
||||||
# Make nix build in background less noticeable
|
# Make nix build in background less noticeable
|
||||||
|
daemonCPUSchedPolicy = "batch";
|
||||||
|
daemonIOSchedPriority = 5; # 0-7
|
||||||
|
} else {
|
||||||
|
# TODO 21.11: remove
|
||||||
daemonNiceLevel = 10;
|
daemonNiceLevel = 10;
|
||||||
daemonIONiceLevel = 5; # 0-7
|
daemonIONiceLevel = 5; # 0-7
|
||||||
};
|
});
|
||||||
|
|
||||||
nixpkgs.overlays = with inputs; [
|
nixpkgs.overlays = with inputs; [
|
||||||
self.overlay
|
self.overlay
|
||||||
|
|
Loading…
Reference in a new issue