summaryrefslogtreecommitdiffstats
path: root/tv/2configs/hw/x220.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-12-08 08:15:51 +0100
committerlassulus <lassulus@lassul.us>2021-12-08 08:15:51 +0100
commit0f3c4547f9e0d3c4fc9bd32c056aa76e9e2277f1 (patch)
treedabde376b4add8e53d2a3e0cc12de14b9326731d /tv/2configs/hw/x220.nix
parentf221b9cc16e23a03b20f1727918f6122eb1e57f8 (diff)
parenta05213de2a259d2a1e328876827ef25f0fb7f7b3 (diff)
Merge remote-tracking branch 'ni/master' into 21.11
Diffstat (limited to 'tv/2configs/hw/x220.nix')
-rw-r--r--tv/2configs/hw/x220.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix
index ecbb84a4..a4342fcc 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