tv x220 nix.daemon*: admit NixOS 21.11

This commit is contained in:
tv 2021-12-07 21:27:44 +01:00
parent 8dbcfef020
commit c3d43331db

View File

@ -26,6 +26,18 @@ in
LIBINPUT_MODEL_LENOVO_X220_TOUCHPAD_FW81=1 LIBINPUT_MODEL_LENOVO_X220_TOUCHPAD_FW81=1
''; '';
} }
{
nix.buildCores = 2;
nix.maxJobs = 2;
}
(if lib.versionAtLeast lib.version "21.11" then {
nix.daemonCPUSchedPolicy = "batch";
nix.daemonIOSchedPriority = 1;
} else {
nix.daemonIONiceLevel = 1;
nix.daemonNiceLevel = 1;
})
]; ];
boot.extraModulePackages = [ boot.extraModulePackages = [
@ -54,12 +66,6 @@ in
START_CHARGE_THRESH_BAT0 = 80; START_CHARGE_THRESH_BAT0 = 80;
}; };
nix = {
buildCores = 2;
maxJobs = 2;
daemonIONiceLevel = 1;
daemonNiceLevel = 1;
};
services.logind.extraConfig = '' services.logind.extraConfig = ''
HandleHibernateKey=ignore HandleHibernateKey=ignore