tv x220 nix.daemon*: admit NixOS 21.11 harder
Only compare majorMinor nixpkgs version because 21.11pre-git < 21.11
This commit is contained in:
parent
8756011d2d
commit
210c032fca
@ -31,7 +31,7 @@ in
|
|||||||
nix.buildCores = 2;
|
nix.buildCores = 2;
|
||||||
nix.maxJobs = 2;
|
nix.maxJobs = 2;
|
||||||
}
|
}
|
||||||
(if lib.versionAtLeast lib.version "21.11" then {
|
(if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then {
|
||||||
nix.daemonCPUSchedPolicy = "batch";
|
nix.daemonCPUSchedPolicy = "batch";
|
||||||
nix.daemonIOSchedPriority = 1;
|
nix.daemonIOSchedPriority = 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user