minecraft: Fix ridiculous CPU usage

Tapes over https://bugs.mojang.com/browse/MC-183518, which schedules
things completely stupidly on Linux starting with 1.14.
pull/52/head
Tristan Daniël Maat 2021-08-25 19:45:15 +01:00
parent 64057828cb
commit 4fe3b8b22b
Signed by: tlater
GPG Key ID: 49670FD774E43268
2 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,8 @@
trustedUsers = [ "@wheel" ];
};
boot.kernelParams = [ "highres=off" "nohz=off" ];
networking = {
hostName = "tlaternet";

View File

@ -90,6 +90,7 @@ in {
};
};
extraOptions = [ "--cpu-quota=90000" ];
autoStart = false;
ports = [ "25565:25565" ];
volumes = [