diff options
author | tv <tv@krebsco.de> | 2021-12-07 21:27:44 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2021-12-08 00:48:51 +0100 |
commit | c3d43331dbefc24fa8079dac827be49c126bca6a (patch) | |
tree | b687c06b569343034e0e1ac6eb54acfe16e3af89 | |
parent | 8dbcfef0202b33bfe2ebef204e362b3087f9edd0 (diff) |
tv x220 nix.daemon*: admit NixOS 21.11
-rw-r--r-- | tv/2configs/hw/x220.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix index ecbb84a44..a4342fcce 100644 --- a/tv/2configs/hw/x220.nix +++ b/tv/2configs/hw/x220.nix @@ -26,6 +26,18 @@ in 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 = [ @@ -54,12 +66,6 @@ in START_CHARGE_THRESH_BAT0 = 80; }; - nix = { - buildCores = 2; - maxJobs = 2; - daemonIONiceLevel = 1; - daemonNiceLevel = 1; - }; services.logind.extraConfig = '' HandleHibernateKey=ignore |