tv AO753 nix.daemon*: admit NixOS 21.11

This commit is contained in:
tv 2021-12-10 23:43:44 +01:00
parent 30bdb1e7e5
commit 1c778a5443

View File

@ -5,6 +5,18 @@ with import <stockholm/lib>;
{
imports = [
../smartd.nix
{
nix.buildCores = 2;
nix.maxJobs = 2;
}
(if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then {
nix.daemonCPUSchedPolicy = "batch";
nix.daemonIOSchedPriority = 1;
} else {
nix.daemonIONiceLevel = 1;
nix.daemonNiceLevel = 1;
})
];
boot.loader.grub = {
@ -29,13 +41,6 @@ with import <stockholm/lib>;
config.boot.kernelPackages.broadcom_sta
];
nix = {
buildCores = 2;
maxJobs = 2;
daemonIONiceLevel = 1;
daemonNiceLevel = 1;
};
services.logind.extraConfig = ''
HandleHibernateKey=ignore
HandleLidSwitch=ignore